include/xaudio2.idl: Use cpp_quote for xaudio2 error codes.
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4ee67e1996
commit
3076d37af8
|
@ -1243,15 +1243,16 @@ const UINT32 XAUDIO2_QUANTUM_NUMERATOR = 1;
|
|||
const UINT32 XAUDIO2_QUANTUM_DENOMINATOR = 100;
|
||||
const float XAUDIO2_QUANTUM_MS = (1000.0 * XAUDIO2_QUANTUM_NUMERATOR / XAUDIO2_QUANTUM_DENOMINATOR);
|
||||
|
||||
const HRESULT XAUDIO2_E_INVALID_CALL = 0x88960001;
|
||||
const HRESULT XAUDIO2_E_XMA_DECODER_ERROR = 0x88960002;
|
||||
const HRESULT XAUDIO2_E_XAPO_CREATION_FAILED = 0x88960003;
|
||||
const HRESULT XAUDIO2_E_DEVICE_INVALIDATED = 0x88960004;
|
||||
/* use cpp_quote to retain the HRESULT type in header file */
|
||||
cpp_quote("#define XAUDIO2_E_INVALID_CALL ((HRESULT)0x88960001)")
|
||||
cpp_quote("#define XAUDIO2_E_XMA_DECODER_ERROR ((HRESULT)0x88960002)")
|
||||
cpp_quote("#define XAUDIO2_E_XAPO_CREATION_FAILED ((HRESULT)0x88960003)")
|
||||
cpp_quote("#define XAUDIO2_E_DEVICE_INVALIDATED ((HRESULT)0x88960004)")
|
||||
|
||||
/* xaudio 2.0 error codes */
|
||||
const HRESULT XAUDIO20_E_XMA_DECODER_ERROR = 0x88960001;
|
||||
const HRESULT XAUDIO20_E_XAPO_CREATION_FAILED = 0x88960002;
|
||||
const HRESULT XAUDIO20_E_DEVICE_INVALIDATED = 0x88960003;
|
||||
cpp_quote("#define XAUDIO20_E_XMA_DECODER_ERROR ((HRESULT)0x88960001)")
|
||||
cpp_quote("#define XAUDIO20_E_XAPO_CREATION_FAILED ((HRESULT)0x88960002)")
|
||||
cpp_quote("#define XAUDIO20_E_DEVICE_INVALIDATED ((HRESULT)0x88960003)")
|
||||
|
||||
cpp_quote("#ifdef XAUDIO2_HELPER_FUNCTIONS")
|
||||
cpp_quote("#define _USE_MATH_DEFINES")
|
||||
|
|
Loading…
Reference in New Issue