From 5b3bc334259ad4b61c9864df410a5a87aea6839b Mon Sep 17 00:00:00 2001 From: David Reid Date: Tue, 15 Jul 2025 11:50:45 +1000 Subject: [PATCH] WASAPI: Move some code out of the header section. --- miniaudio.h | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/miniaudio.h b/miniaudio.h index 8384f301..f0cfd2f2 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -7244,17 +7244,6 @@ typedef enum MA_ATOMIC_SAFE_TYPE_DECL(i32, 4, device_state) -#ifdef MA_SUPPORT_WASAPI -/* We need a IMMNotificationClient object for WASAPI. */ -typedef struct -{ - void* lpVtbl; - ma_uint32 counter; - ma_device* pDevice; -} ma_IMMNotificationClient; -#endif - - /* Device job thread. This is used by backends that require asynchronous processing of certain operations. It is not used by all backends. @@ -21637,6 +21626,13 @@ typedef struct MA_AUDIO_STREAM_CATEGORY eCategory; } ma_AudioClientProperties; +typedef struct +{ + void* lpVtbl; + ma_uint32 counter; + ma_device* pDevice; +} ma_IMMNotificationClient; + /* IUnknown */ typedef struct {