Question

I want to be notified when a microphone jack is plugged in. What is the event fired by the OS(particularly Vista) The audio panel shows no recording device active if no mic plugged in(vista). This never happened in XP.

Also if my microphone had a "advance control" for eg Bass Boost, Mic Boost(AGC) etc, how can I get the mixer control for the same to control it.

I'm using MFC for development. Thanks

Was it helpful?

Solution

I believe that you want to implement IMMNotificationClient and handle the OnDeviceAdded event.
If you want the various controls in Vista, you're better off using the Device Topology API to get the controls (IAudioLoudness, etc.) Otherwise, you need to enumerate the mixer device IDs & ask them for their endpoint IDs, then compare the endpoint ID to find the real device you're interested in.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top