mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-21 12:18:28 +00:00
SDL_wasapi.c: fixed build against older SDKs.
This commit is contained in:
parent
68ca35c318
commit
ed6eb07e79
1 changed files with 7 additions and 1 deletions
|
@ -34,10 +34,16 @@
|
||||||
|
|
||||||
#include "SDL_wasapi.h"
|
#include "SDL_wasapi.h"
|
||||||
|
|
||||||
/* This constant isn't available on MinGW-w64 */
|
/* These constants aren't available in older SDKs */
|
||||||
#ifndef AUDCLNT_STREAMFLAGS_RATEADJUST
|
#ifndef AUDCLNT_STREAMFLAGS_RATEADJUST
|
||||||
#define AUDCLNT_STREAMFLAGS_RATEADJUST 0x00100000
|
#define AUDCLNT_STREAMFLAGS_RATEADJUST 0x00100000
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY
|
||||||
|
#define AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY 0x08000000
|
||||||
|
#endif
|
||||||
|
#ifndef AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM
|
||||||
|
#define AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM 0x80000000
|
||||||
|
#endif
|
||||||
|
|
||||||
/* these increment as default devices change. Opened default devices pick up changes in their threads. */
|
/* these increment as default devices change. Opened default devices pick up changes in their threads. */
|
||||||
SDL_atomic_t WASAPI_DefaultPlaybackGeneration;
|
SDL_atomic_t WASAPI_DefaultPlaybackGeneration;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue