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

# XUserDefaultAudioEndpointUtf16ChangedCallback

> XUserDefaultAudioEndpointUtf16ChangedCallback

# XUserDefaultAudioEndpointUtf16ChangedCallback

Rappel qu'une application définit et appelle lorsque le point de terminaison audio par défaut d'un utilisateur change.

## Syntaxe

```cpp theme={null}
void XUserDefaultAudioEndpointUtf16ChangedCallback(  
         void* context,  
         XUserLocalId user,  
         XUserDefaultAudioEndpointKind defaultAudioEndpointKind,  
         const wchar_t* endpointIdUtf16  
)  
```

### Paramètres

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

Contexte que l'application définit et envoie à la fonction [XUserRegisterForDefaultAudioEndpointUtf16Changed](https://docs.xbox.com/fr-CA/reference/system/xuser/functions/xuserregisterfordefaultaudioendpointutf16changed.md) lors de l'inscription du rappel.

*user*   \
Type : [XUserLocalId](https://docs.xbox.com/fr-CA/reference/system/xuser/structs/xuserlocalid.md)

ID local de l'utilisateur dont le point de terminaison audio par défaut change.

*defaultAudioEndpointKind*   \
Type : [XUserDefaultAudioEndpointKind](https://docs.xbox.com/fr-CA/reference/system/xuser/enums/xuserdefaultaudioendpointkind.md)

Valeur d'énumération qui spécifie si le point de terminaison audio par défaut de l'utilisateur effectue le rendu ou la capture audio.

*endpointIdUtf16*   \_In\_opt\_z\_\
Type : wchar\_t\*

Pointeur vers une chaîne qui représente la ressource du périphérique multimédia.

### Valeur de retour

Type : void

## Remarques

Pour inscrire un rappel qu'une application appelle lorsque le point de terminaison audio par défaut change, appelez la fonction [XUserRegisterForDefaultAudioEndpointUtf16Changed](https://docs.xbox.com/fr-CA/reference/system/xuser/functions/xuserregisterfordefaultaudioendpointutf16changed.md).
La fonction prend comme argument un pointeur vers une fonction XUserDefaultAudioEndpointUtf16ChangedCallback.

Pour désinscrire un rappel de changement du point de terminaison audio par défaut précédemment inscrit, appelez la fonction [XUserUnregisterForDefaultAudioEndpointUtf16Changed](https://docs.xbox.com/fr-CA/reference/system/xuser/functions/xuserunregisterfordefaultaudioendpointutf16changed.md).

## 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

## Voir aussi

[XUser](https://docs.xbox.com/fr-CA/reference/system/xuser/xuser_members.md)\
[XUserRegisterForDefaultAudioEndpointUtf16Changed](https://docs.xbox.com/fr-CA/reference/system/xuser/functions/xuserregisterfordefaultaudioendpointutf16changed.md)\
[XUserUnregisterForDefaultAudioEndpointUtf16Changed](https://docs.xbox.com/fr-CA/reference/system/xuser/functions/xuserunregisterfordefaultaudioendpointutf16changed.md)


## Related topics

- [XUserUnregisterForDefaultAudioEndpointUtf16Changed](https://docs.xbox.com/fr-CA/reference/system/xuser/functions/xuserunregisterfordefaultaudioendpointutf16changed.md)
- [XUserRegisterForDefaultAudioEndpointUtf16Changed](https://docs.xbox.com/fr-CA/reference/system/xuser/functions/xuserregisterfordefaultaudioendpointutf16changed.md)
- [XUserGetDefaultAudioEndpointUtf16](https://docs.xbox.com/fr-CA/reference/system/xuser/functions/xusergetdefaultaudioendpointutf16.md)
- [XUserDefaultAudioEndpointKind](https://docs.xbox.com/fr-CA/reference/system/xuser/enums/xuserdefaultaudioendpointkind.md)
- [XUserLocalId](https://docs.xbox.com/fr-CA/reference/system/xuser/structs/xuserlocalid.md)
