diff --git a/src/main.cpp b/src/main.cpp index 6151846bc..f6bfef35f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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");