Bugfix: sound driver 'sdl' wasn't available if Bochs was compiled with SDL2 gui.
FIXME: wave output doesn't work properly in case of SDL2.
This commit is contained in:
parent
9e9bdeda48
commit
3a1bb1f476
@ -39,7 +39,7 @@
|
||||
#ifndef WIN32
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
#if BX_WITH_SDL
|
||||
#if BX_WITH_SDL || BX_WITH_SDL2
|
||||
#include <SDL.h>
|
||||
#endif
|
||||
|
||||
@ -88,7 +88,7 @@ void bx_soundmod_ctl_c::init()
|
||||
} else if (!strcmp(driver, "alsa")) {
|
||||
soundmod = new bx_sound_alsa_c();
|
||||
#endif
|
||||
#if BX_WITH_SDL
|
||||
#if BX_WITH_SDL || BX_WITH_SDL2
|
||||
} else if (!strcmp(driver, "sdl")) {
|
||||
soundmod = new bx_sound_sdl_c();
|
||||
#endif
|
||||
@ -157,7 +157,7 @@ void beep_thread(void *indata)
|
||||
Sleep(100);
|
||||
#endif
|
||||
} else if (soundmod->get_type() == BX_SOUNDLOW_SDL) {
|
||||
#if BX_WITH_SDL
|
||||
#if BX_WITH_SDL || BX_WITH_SDL2
|
||||
SDL_Delay(100);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user