diff --git a/src/sdl/mixer_sound.c b/src/sdl/mixer_sound.c index 1db57de13..6fdd09c38 100644 --- a/src/sdl/mixer_sound.c +++ b/src/sdl/mixer_sound.c @@ -181,9 +181,10 @@ void I_StartupSound(void) if (sound_started) return; -#ifdef _WIN32 +#if defined(_WIN32) && !SDL_VERSION_ATLEAST(2,26,5) // Force DirectSound instead of WASAPI // SDL 2.0.6+ defaults to the latter and it screws up our sound effects + // SDL 2.26.5 brought imrovements to resampling so this just screws up other stuff now SDL_setenv("SDL_AUDIODRIVER", "directsound", 1); #endif diff --git a/src/sdl/sdl_sound.c b/src/sdl/sdl_sound.c index ba4de2f99..cac11c1f4 100644 --- a/src/sdl/sdl_sound.c +++ b/src/sdl/sdl_sound.c @@ -1169,9 +1169,10 @@ void I_StartupSound(void) // Configure sound device CONS_Printf("I_StartupSound:\n"); -#ifdef _WIN32 +#if defined(_WIN32) && !SDL_VERSION_ATLEAST(2,26,5) // Force DirectSound instead of WASAPI // SDL 2.0.6+ defaults to the latter and it screws up our sound effects + // SDL 2.26.5 brought imrovements to resampling so this just screws up other stuff now SDL_setenv("SDL_AUDIODRIVER", "directsound", 1); #endif