Browse Source

Fixed MinGW-w64 build

Sam Lantinga 7 years ago
parent
commit
99a0c0f0e2
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/audio/wasapi/SDL_wasapi.c

+ 5 - 0
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;