Méthode IAudioSessionManager2 ::UnregisterDuckNotification (audiopolicy.h)
La méthode UnregisterDuckNotification supprime une inscription précédente par l’application pour recevoir des notifications.
Syntaxe
HRESULT UnregisterDuckNotification(
IAudioVolumeDuckNotification *duckNotification
);
Paramètres
duckNotification
Pointeur vers l’interface IAudioVolumeDuckNotification implémentée par l’application. Transmettez le pointeur d’interface spécifié au gestionnaire de sessions dans un appel précédent à la méthode IAudioSessionManager2 ::RegisterDuckNotification . Si la méthode UnregisterDuckNotification réussit, elle appelle la méthode Release sur l’interface IAudioVolumeDuckNotification de l’application.
Valeur retournée
Si la méthode réussit, retourne S_OK. En cas d’échec, les codes de retour possibles incluent, sans s’y limiter, les valeurs indiquées dans le tableau suivant.
Valeur retournée | Description |
---|---|
|
duckNotification a la valeur NULL. |
Remarques
L’application appelle cette méthode lorsqu’elle n’a plus besoin de recevoir de notifications. La méthode UnregisterDuckNotification supprime l’inscription d’une interface IAudioVolumeDuckNotification que l’application a précédemment inscrite auprès du gestionnaire de sessions en appelant la méthode IAudioSessionManager2 ::RegisterDuckNotification .
Une fois que l’application a appelé UnregisterDuckNotification, les événements en attente ne sont pas signalés à l’application.
Configuration requise
Condition requise | Valeur |
---|---|
Client minimal pris en charge | Windows 7 [applications de bureau uniquement] |
Serveur minimal pris en charge | Windows Server 2008 R2 [applications de bureau uniquement] |
Plateforme cible | Windows |
En-tête | audiopolicy.h |
Voir aussi
Expérience de canardage par défaut