XAudio2 Error Codes

XAudio2 specific error codes returned by XAudio2 methods.

Constant/value Description
XAUDIO2_E_INVALID_CALL
0x88960001
Returned by XAudio2 for certain API usage errors (invalid calls and so on) that are hard to avoid completely and should be handled by a title at runtime. (API usage errors that are completely avoidable, such as invalid parameters, cause an ASSERT in debug builds and undefined behavior in retail builds, so no error code is defined for them.)
XAUDIO2_E_XMA_DECODER_ERROR
0x88960002
The Xbox 360 XMA hardware suffered an unrecoverable error.
XAUDIO2_E_XAPO_CREATION_FAILED
0x88960003
An effect failed to instantiate.
XAUDIO2_E_DEVICE_INVALIDATED
0x88960004
An audio device became unusable through being unplugged or some other event.

Remarks

Platform Requirements

Windows 10 (XAudio2.9); Windows 8, Windows Phone 8 (XAudio 2.8); DirectX SDK (XAudio 2.7)

Requirements

Header
Xaudio2.h

See also

XAudio2::Constants