Is there way in Windows API to be notified when audio device gets enabled or disabled?
I have source code with RegisterDeviceNotification() and WM_DEVICECHANGE; it tracks USB device insertion/removing good. But it does not track laptop's internal audio device enabling or disabling.
Of course I can make timer and use waveInGetNumDevs/waveOutGetNumDevs. But it is more interest to find way to force OS to send notifications :)
Thank you :)