IAudioSessionManager2RegisterDuckNotification Method

Registers the application with the session manager to receive ducking notifications.

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 RegisterDuckNotification(
	string sessionId,
	IAudioVolumeDuckNotification client
)

Parameters

sessionId  String
client  IAudioVolumeDuckNotification
Pointer to the application's implementation of the IAudioVolumeDuckNotification interface.

The implementation is called when ducking events are raised by the audio system and notifications are sent to the registered applications.

Return Value

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

See Also