XAudio2 specific error codes that can be returned by the XAudio2 methods.
| Error code | Value | Description |
|---|---|---|
| XAUDIO2_E_INVALID_CALL | 0x88960001 | An API call or one of its arguments was illegal. |
| XAUDIO2_E_XMA_DECODER_ERROR | 0x88960002 | The XMA hardware suffered an unrecoverable error. |
| XAUDIO2_E_XAPO_CREATION_FAILED | 0x88960003 | XAudio2 failed to initialize an XAPO effect. |
| XAUDIO2_E_DEVICE_INVALIDATED | 0x88960004 | An audio device became unusable (unplugged, etc). |
| XAUDIO2_E_SHAPE_CONTEXTS_ALLOCATED_EXCLUSIVE | 0x88960005 | An instance of the XAudio2 engine was already allocated with exclusive access to SHAPE contexts. |
| XAUDIO2_E_INVALID_SHAPE_CONTEXT_RANGE | 0x88960006 | The range of SHAPE contexts to be shared is already in-use. |