mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Prefer directsound over winmm under Windows
This commit is contained in:
parent
fbfadb1eef
commit
6975b664b9
@ -709,6 +709,11 @@ DoInit (int argc, char * argv[], bool & exit)
|
|||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
/* Fix laggy sounds on Windows by not using winmm driver. */
|
||||||
|
SDL_setenv ("SDL_AUDIODRIVER", "directsound", true);
|
||||||
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
auto res = SDL_Init (SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER);
|
auto res = SDL_Init (SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER);
|
||||||
if (res < 0)
|
if (res < 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user