diff --git a/dlls/xaudio2_7/compat.c b/dlls/xaudio2_7/compat.c index 516d6c20bf4..b9e720f22c7 100644 --- a/dlls/xaudio2_7/compat.c +++ b/dlls/xaudio2_7/compat.c @@ -101,7 +101,9 @@ #include "wine/debug.h" +#if XAUDIO2_VER <= 7 WINE_DEFAULT_DEBUG_CHANNEL(xaudio2); +#endif /* BEGIN IXAudio2SourceVoice */ #if XAUDIO2_VER == 0 diff --git a/dlls/xaudio2_7/x3daudio.c b/dlls/xaudio2_7/x3daudio.c index a182852c19b..58f7062ad68 100644 --- a/dlls/xaudio2_7/x3daudio.c +++ b/dlls/xaudio2_7/x3daudio.c @@ -23,7 +23,9 @@ #include "wine/debug.h" +#if XAUDIO2_VER >= 8 || defined X3DAUDIO1_VER WINE_DEFAULT_DEBUG_CHANNEL(xaudio2); +#endif #ifdef X3DAUDIO1_VER BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, void *pReserved)