Commit 99a0c0f0e2e0b0d0d8f640ec8d81b39f5e8f6210

Sam Lantinga 2018-02-24T08:23:44

Fixed MinGW-w64 build

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/audio/wasapi/SDL_wasapi.c b/src/audio/wasapi/SDL_wasapi.c
index 8079525..b7c8dda 100644
--- a/src/audio/wasapi/SDL_wasapi.c
+++ b/src/audio/wasapi/SDL_wasapi.c
@@ -37,6 +37,11 @@
 
 #include "SDL_wasapi.h"
 
+/* This constant isn't available on MinGW-w64 */
+#ifndef AUDCLNT_STREAMFLAGS_RATEADJUST
+#define AUDCLNT_STREAMFLAGS_RATEADJUST  0x00100000
+#endif
+
 /* these increment as default devices change. Opened default devices pick up changes in their threads. */
 SDL_atomic_t WASAPI_DefaultPlaybackGeneration;
 SDL_atomic_t WASAPI_DefaultCaptureGeneration;