-
Notifications
You must be signed in to change notification settings - Fork 499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows not sending 'KSCATEGORY_AUDIO' notification for audio devices #351
Comments
Thanks for the follow-up. All audio devices are supposed to use What driver is it? |
Realtek High Definition Audio, version 6.0.8945.1 |
Are you using the default audio device when creating the XAudio2 mastering graph, or are you enumerating a specific device? |
I have confirmed that this is a driver bug. Proposition: |
Thanks for the follow-up. If you use the default device for XAudio2 instead of enumerate a specific device, on Windows 10+ you won't actually get a graph error for changing end-points as |
Yes, it is best to handle this using Audio apis rather than rely on |
I noticed that
KSCATEGORY_AUDIO
isn't being sent by Windows to WndProc inWM_DEVICECHANGE
, but insteadDEVINTERFACE_AUDIO_RENDER
is received when a playback device is inserted.Test setup
Platform: Windows 10
Windows SDK version: 10.0.22000
Tested using both a Headset & Earbuds (front and back panel).
Solution:
Assuming this is the actual behaviour on other systems, I suggest this wiki page to be updated to filter for
DEVINTERFACE_AUDIO_RENDER
and handle receiving it, maybe even alongsideKSCATEGORY_AUDIO
(just in case)the Wiki page in question: "Adding audio to your project"
Changes:
and
Sidenote:
In order to get
KSCATEGORY_AUDIO
definition you must also includeks.h
beforeksmedia.h
for it to compile.The text was updated successfully, but these errors were encountered: