set default audio driver to "winmm" on Vista

issue #2545
This commit is contained in:
tildearrow 2025-06-11 14:24:55 -05:00
parent 79c48ba799
commit 2d8c8bc6fa

View file

@ -759,6 +759,12 @@ int main(int argc, char** argv) {
return 1;
}
#if defined(HAVE_SDL2) && defined(_WIN32) && !defined(SUPPORT_XP)
if (!IsWindows7OrGreater()) {
SDL_SetHint("SDL_HINT_AUDIODRIVER","winmm");
}
#endif
#ifdef HAVE_GUI
if (e.preInit(consoleMode || benchMode || infoMode || outputMode)) {
if (consoleMode || benchMode || infoMode || outputMode) {
@ -789,7 +795,6 @@ int main(int argc, char** argv) {
}
#endif
if (!fileName.empty() && ((!e.getConfBool("tutIntroPlayed",TUT_INTRO_PLAYED)) || e.getConfInt("alwaysPlayIntro",0)!=3 || consoleMode || benchMode || infoMode || outputMode)) {
logI("loading module...");
FILE* f=ps_fopen(fileName.c_str(),"rb");