actually set the correct hint for SDL audio driver

issue #2545
This commit is contained in:
tildearrow 2025-06-25 16:46:05 -05:00
parent 6d5d28484f
commit 83f97a794f
2 changed files with 3 additions and 3 deletions

View file

@ -3847,7 +3847,7 @@ bool DivEngine::initAudioBackend() {
if (audioEngine==DIV_AUDIO_SDL) {
String audioDriver=getConfString("sdlAudioDriver","");
if (!audioDriver.empty()) {
SDL_SetHint("SDL_HINT_AUDIODRIVER",audioDriver.c_str());
SDL_SetHint(SDL_HINT_AUDIODRIVER,audioDriver.c_str());
}
}
#endif
@ -4072,7 +4072,7 @@ bool DivEngine::preInit(bool noSafeMode) {
#ifdef HAVE_SDL2
String audioDriver=getConfString("sdlAudioDriver","");
if (!audioDriver.empty()) {
SDL_SetHint("SDL_HINT_AUDIODRIVER",audioDriver.c_str());
SDL_SetHint(SDL_HINT_AUDIODRIVER,audioDriver.c_str());
}
#endif

View file

@ -764,7 +764,7 @@ int main(int argc, char** argv) {
#if defined(HAVE_SDL2) && defined(_WIN32) && !defined(SUPPORT_XP)
if (!IsWindows7OrGreater()) {
SDL_SetHint("SDL_HINT_AUDIODRIVER","winmm");
SDL_SetHint(SDL_HINT_AUDIODRIVER,"winmm");
}
#endif