unregisterDuckNotification method
Deletes a previous registration by the application to receive notifications.
Throws a WindowsException on failure.
To learn more, see learn.microsoft.com/windows/win32/api/audiopolicy/nf-audiopolicy-iaudiosessionmanager2-unregisterducknotification.
Implementation
@pragma('vm:prefer-inline')
void unregisterDuckNotification(
IAudioVolumeDuckNotification? duckNotification,
) {
final hr$ = HRESULT(
_UnregisterDuckNotificationFn(ptr, duckNotification?.ptr ?? nullptr),
);
if (hr$.isError) throw WindowsException(hr$);
}