Skip to content

Commit c5f47fe

Browse files
committed
Fix a compilation error when WASAPI is disabled.
1 parent 206be60 commit c5f47fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

miniaudio.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -11359,6 +11359,9 @@ IMPLEMENTATION
1135911359

1136011360
typedef UINT MA_MMRESULT;
1136111361
typedef UINT MA_MMVERSION;
11362+
11363+
/* IUnknown is used by both the WASAPI and DirectSound backends. It easier to just declare our version here. */
11364+
typedef struct ma_IUnknown ma_IUnknown;
1136211365
#endif
1136311366

1136411367
#if !defined(MA_WIN32)
@@ -20134,7 +20137,6 @@ static const IID MA_IID_IMMDeviceEnumerator_Instance = {0xA95664D2,
2013420137
#define MA_IID_IMMDeviceEnumerator &MA_IID_IMMDeviceEnumerator_Instance
2013520138
#endif
2013620139

20137-
typedef struct ma_IUnknown ma_IUnknown;
2013820140
#if defined(MA_WIN32_DESKTOP) || defined(MA_WIN32_GDK)
2013920141
#define MA_MM_DEVICE_STATE_ACTIVE 1
2014020142
#define MA_MM_DEVICE_STATE_DISABLED 2

0 commit comments

Comments
 (0)