IAudioSessionControl2SetDuckingPreference Method

Enables or disables the default stream attenuation experience (auto-ducking) provided by the system.

Definition

Namespace: DevCase.Win32.Interfaces
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[PreserveSigAttribute]
HResult SetDuckingPreference(
	bool optOut
)

Parameters

optOut  Boolean
A variable that enables or disables system auto-ducking.

Return Value

HResult
If the method succeeds, it returns S_OK. If it fails, it returns an HResult value.

See Also