> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XUserRegisterForDefaultAudioEndpointUtf16Changed

> XUserRegisterForDefaultAudioEndpointUtf16Changed

# XUserRegisterForDefaultAudioEndpointUtf16Changed

Inscrit un rappel que l'application définit et appelle lorsque le point de terminaison audio par défaut change.

## Syntaxe

```cpp theme={null}
HRESULT XUserRegisterForDefaultAudioEndpointUtf16Changed(  
         XTaskQueueHandle queue,  
         void* context,  
         XUserDefaultAudioEndpointUtf16ChangedCallback* callback,  
         XTaskQueueRegistrationToken* token  
)  
```

### Paramètres

*queue*   \_In\_opt\_\
Type : XTaskQueueHandle

Handle de la file d'attente asynchrone sur laquelle placer le rappel de modification.

*context*   \_In\_opt\_\
Type : void\*

Contexte que l'application définit et transmet au rappel.

*callback*   \_In\_\
Type : XUserDefaultAudioEndpointUtf16ChangedCallback\*

Rappel que l'application définit et inscrit pour les événements de modification du point de terminaison audio.

*token*   \_Out\_\
Type : [XTaskQueueRegistrationToken\*](/fr/reference/system/xtaskqueue/structs/xtaskqueueregistrationtoken)

En cas de réussite, reçoit un jeton qui identifie le rappel. Pour désinscrire le rappel, transmettez ce jeton à la fonction [XUserUnregisterForDefaultAudioEndpointUtf16Changed](/fr/reference/system/xuser/functions/xuserunregisterfordefaultaudioendpointutf16changed).

### Valeur de retour

Type : HRESULT

Code de réussite ou d'erreur HRESULT.\
Pour obtenir la liste des codes d'erreur, consultez [Codes d'erreur](/fr/reference/errorcodes).

## Remarques

<Note>Cette fonction ne peut pas être appelée sans risque sur un thread à durée critique. Pour plus d'informations, consultez [Threads à durée critique](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads).</Note>

Pour désinscrire un rappel de modification du point de terminaison audio par défaut précédemment inscrit, appelez [XUserUnregisterForDefaultAudioEndpointUtf16Changed](/fr/reference/system/xuser/functions/xuserunregisterfordefaultaudioendpointutf16changed).

Pour inscrire un rappel d'association d'appareil d'utilisateur, appelez [XUserRegisterForDeviceAssociationChanged](/fr/reference/system/xuser/functions/xuserregisterfordeviceassociationchanged).

Pour désinscrire un rappel de modification d'association d'appareil d'utilisateur précédemment inscrit, appelez [XUserUnregisterForDeviceAssociationChanged](/fr/reference/system/xuser/functions/xuserunregisterfordeviceassociationchanged).

## Configuration requise

**En-tête :** XUser.h

**Bibliothèque :** xgameruntime.lib

**Plateformes prises en charge :** Windows, consoles de la famille XBOX One et consoles XBOX Series

## Documentation conceptuelle

* [Threads à durée critique](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## Voir aussi

[XUser](/fr/reference/system/xuser/xuser_members)\
[XUserDefaultAudioEndpointUtf16ChangedCallback](/fr/reference/system/xuser/functions/xuserdefaultaudioendpointutf16changedcallback)\
[XUserUnregisterForDefaultAudioEndpointUtf16Changed](/fr/reference/system/xuser/functions/xuserunregisterfordefaultaudioendpointutf16changed)


## Related topics

- [XUserRegisterForDefaultAudioEndpointUtf16Changed](/ko/reference/system/xuser/functions/xuserregisterfordefaultaudioendpointutf16changed.md)
- [XUserDefaultAudioEndpointUtf16ChangedCallback](/reference/system/xuser/functions/xuserdefaultaudioendpointutf16changedcallback.md)
- [XUserUnregisterForDefaultAudioEndpointUtf16Changed](/reference/system/xuser/functions/xuserunregisterfordefaultaudioendpointutf16changed.md)
- [XUserGetDefaultAudioEndpointUtf16](/reference/system/xuser/functions/xusergetdefaultaudioendpointutf16.md)
