0
0
Fork 0
mirror of https://github.com/yquake2/yquake2remaster.git synced 2025-03-26 12:52:00 +00:00

Use "directsound" as sounddriver when using SDL2 on Windows

This commit is contained in:
Yamagi Burmeister 2013-10-12 12:13:33 +02:00
parent 5b10bdc2b2
commit 82f3fa84a9

View file

@ -1207,7 +1207,11 @@ SDL_BackendInit(void)
int sndchans = (Cvar_Get("sndchannels", "2", CVAR_ARCHIVE))->value;
#ifdef _WIN32
#if SDL_VERSION_ATLEAST(2, 0, 0)
s_sdldriver = (Cvar_Get("s_sdldriver", "directsound", CVAR_ARCHIVE));
#else
s_sdldriver = (Cvar_Get("s_sdldriver", "dsound", CVAR_ARCHIVE));
#endif
#elif __linux__
s_sdldriver = (Cvar_Get("s_sdldriver", "alsa", CVAR_ARCHIVE));
#elif __APPLE__