0

`I am using the IMMNotificationClient interface and have registered for RegisterEndpointNotificationCallback (I am using the code samples from Device Events from msdn library). When I remove/add an audio endpoint, I do get OnDeviceStateChanged, OnDefaultDeviceChange, OnPropertyValueChanged callbacks, but not the OnDeviceRemoved or OnDeviceAdded.

OnDeviceRemoved or OnDeviceAdded are not being called when I insert or remove a headphone. Only OnDeviceStateChanged and OnDefaultDeviceChange are being called.

  • I'm not 100% sure on this one but, if by "audio endpoint" you mean a speaker or headphones, then I think that's not adding/removing a *device* in the computer hardware sense, just changing a device state. The "device" would be the sound card/system that the speaker plugs in to. – Adrian Mole Jan 06 '23 at 10:51

0 Answers0