diff --git a/SourceX/display.cpp b/SourceX/display.cpp index 30ff3f78a..57e4d618c 100644 --- a/SourceX/display.cpp +++ b/SourceX/display.cpp @@ -125,6 +125,12 @@ bool SpawnWindow(const char *lpWindowName) SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0"); #endif +#ifdef _WIN32 + // The default WASAPI backend causes distortions + // https://github.com/diasurgical/devilutionX/issues/1434 + SDL_setenv("SDL_AUDIODRIVER", "winmm", /*overwrite=*/false); +#endif + int initFlags = SDL_INIT_AUDIO | SDL_INIT_VIDEO | SDL_INIT_JOYSTICK; #ifndef USE_SDL1 initFlags |= SDL_INIT_GAMECONTROLLER;