XUserRegisterForDefaultAudioEndpointUtf16Changed
Registers a callback that the application defines and invokes when the default audio endpoint changes.Syntax
Parameters
queue _In_opt_Type: XTaskQueueHandle A handle to the asynchronous queue to put the change callback on. context _In_opt_
Type: void* The context the application defines and passes to the callback. callback _In_
Type: XUserDefaultAudioEndpointUtf16ChangedCallback* The callback the application defines and registers for audio endpoint change events. token _Out_
Type: XTaskQueueRegistrationToken* On success, receives a token that identifies the callback. To un-register the callback, pass this token to the XUserUnregisterForDefaultAudioEndpointUtf16Changed function.
Return value
Type: HRESULT HRESULT success or error code.For a list of error codes, see Error Codes.
Remarks
This function isn’t safe to call on a time-sensitive thread. For more information, see Time-sensitive threads.
Requirements
Header: XUser.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consolesConceptual documentation
See also
XUserXUserDefaultAudioEndpointUtf16ChangedCallback
XUserUnregisterForDefaultAudioEndpointUtf16Changed
