diff --git a/audio/xaudio-c/xaudio-c.c b/audio/xaudio-c/xaudio-c.c index 4e0168bcdc..537a552c94 100644 --- a/audio/xaudio-c/xaudio-c.c +++ b/audio/xaudio-c/xaudio-c.c @@ -21,6 +21,7 @@ #include #include #include "../../msvc/msvc_compat.h" +#include "../../boolean.h" #define MAX_BUFFERS 16 #define MAX_BUFFERS_MASK (MAX_BUFFERS - 1) diff --git a/audio/xaudio-c/xaudio.h b/audio/xaudio-c/xaudio.h index af60803836..f0020e97dc 100644 --- a/audio/xaudio-c/xaudio.h +++ b/audio/xaudio-c/xaudio.h @@ -44,13 +44,14 @@ DEFINE_IID(IXAudio2, 8bcf1f58, 9fe7, 4583, 8a, c6, e2, ad, c4, 65, c8, bb); #pragma pack(push, 1) #else + #define WIN32_LEAN_AND_MEAN #include #include #include #include -// C opaque handle +#undef OPAQUE #define OPAQUE struct #define DEFINE_GUID_X(n, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ @@ -357,8 +358,11 @@ STDAPI XAudio2Create(__deref_out IXAudio2** ppXAudio2, UINT32 Flags X2DEFAULT(0) #define IXAudio2SourceVoice_DestroyVoice(THIS) (THIS)->lpVtbl->DestroyVoice(THIS) #define IXAudio2MasteringVoice_DestroyVoice(THIS) (THIS)->lpVtbl->DestroyVoice(THIS) -static inline HRESULT XAudio2Create(IXAudio2 **ppXAudio2, int, int) +static inline HRESULT XAudio2Create(IXAudio2 **ppXAudio2, UINT32 flags, XAUDIO2_PROCESSOR proc) { + (void)flags; + (void)proc; + IXAudio2 *pXAudio2; #ifdef __cplusplus