You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
Im trying to do Stream Attenuation(Ducking), same as what skype does during call.
I am unable to set SetDuckingPreference on MMDevice, it doesnt change anything.
platform : Windows 11
What i did is :
defDevice.AudioSessionManager.OnSessionCreated +=AudioSessionManagerOnSessionCreated;privatevoidAudioSessionManagerOnSessionCreated(objectsender,IAudioSessionControlnewSession){cc= newSession as IAudioSessionControl2;inthres= cc.SetDuckingPreference(true);}
where this device is used on WasapiOut.
Where i checked windows API for IAudioSessionControl2::SetDuckingPreference method (audiopolicy.h)
I dont know if you already implemented this or am i missing a hidden feature where i can activate Ducking.
Any help is appreciated.
Thanks
The text was updated successfully, but these errors were encountered:
Ok so upon some trial and error it seems you cant enumerate device and select even if its same device.
it only works on default with communication role
Hi
Im trying to do Stream Attenuation(Ducking), same as what skype does during call.
I am unable to set SetDuckingPreference on MMDevice, it doesnt change anything.
platform : Windows 11
What i did is :
where this device is used on WasapiOut.
Where i checked windows API for IAudioSessionControl2::SetDuckingPreference method (audiopolicy.h)
I dont know if you already implemented this or am i missing a hidden feature where i can activate Ducking.
Any help is appreciated.
Thanks
The text was updated successfully, but these errors were encountered: