XAudio2 Error Codes

Header: xaudio2.h

XAudio2 specific error codes returned by XAudio2 methods.

SymbolicCodeDescription
XAUDIO2_E_INVALID_CALL0x88960001Returned 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_ERROR0x88960002The Xbox 360 XMA hardware suffered an unrecoverable error.
XAUDIO2_E_XAPO_CREATION_FAILED0x88960003An effect failed to instantiate.
XAUDIO2_E_DEVICE_INVALIDATED0x88960004An audio device became unusable through being unplugged or some other event.
4 entries

Article text from the Win32 documentation (opens in a new tab), by Microsoft, under the CC BY 4.0 (opens in a new tab) licence.