Skip to content

Commit

Permalink
Fixed MinGW-w64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 24, 2018
1 parent 5adc1b7 commit 99a0c0f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/audio/wasapi/SDL_wasapi.c
Expand Up @@ -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;
Expand Down

0 comments on commit 99a0c0f

Please sign in to comment.