parent
6d5d28484f
commit
83f97a794f
|
@ -3847,7 +3847,7 @@ bool DivEngine::initAudioBackend() {
|
||||||
if (audioEngine==DIV_AUDIO_SDL) {
|
if (audioEngine==DIV_AUDIO_SDL) {
|
||||||
String audioDriver=getConfString("sdlAudioDriver","");
|
String audioDriver=getConfString("sdlAudioDriver","");
|
||||||
if (!audioDriver.empty()) {
|
if (!audioDriver.empty()) {
|
||||||
SDL_SetHint("SDL_HINT_AUDIODRIVER",audioDriver.c_str());
|
SDL_SetHint(SDL_HINT_AUDIODRIVER,audioDriver.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -4072,7 +4072,7 @@ bool DivEngine::preInit(bool noSafeMode) {
|
||||||
#ifdef HAVE_SDL2
|
#ifdef HAVE_SDL2
|
||||||
String audioDriver=getConfString("sdlAudioDriver","");
|
String audioDriver=getConfString("sdlAudioDriver","");
|
||||||
if (!audioDriver.empty()) {
|
if (!audioDriver.empty()) {
|
||||||
SDL_SetHint("SDL_HINT_AUDIODRIVER",audioDriver.c_str());
|
SDL_SetHint(SDL_HINT_AUDIODRIVER,audioDriver.c_str());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -764,7 +764,7 @@ int main(int argc, char** argv) {
|
||||||
|
|
||||||
#if defined(HAVE_SDL2) && defined(_WIN32) && !defined(SUPPORT_XP)
|
#if defined(HAVE_SDL2) && defined(_WIN32) && !defined(SUPPORT_XP)
|
||||||
if (!IsWindows7OrGreater()) {
|
if (!IsWindows7OrGreater()) {
|
||||||
SDL_SetHint("SDL_HINT_AUDIODRIVER","winmm");
|
SDL_SetHint(SDL_HINT_AUDIODRIVER,"winmm");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue