SDL: Allow -sound dsound on SDL Windows builds. [R. Belmont]

This commit is contained in:
R. Belmont 2014-09-12 01:18:35 +00:00
parent 8dca02f4ca
commit d488f52c17
2 changed files with 11 additions and 0 deletions

View File

@ -409,6 +409,10 @@ OSDOBJS = \
$(SDLOBJ)/output.o \ $(SDLOBJ)/output.o \
$(SDLOBJ)/watchdog.o \ $(SDLOBJ)/watchdog.o \
ifeq ($(BASE_TARGETOS),win32)
$(OSDOBJ)/modules/sound/direct_sound.o
endif
ifdef NO_USE_MIDI ifdef NO_USE_MIDI
DEFS += -DDISABLE_MIDI=1 DEFS += -DDISABLE_MIDI=1
endif endif

View File

@ -53,6 +53,9 @@
#if defined(SDLMAME_EMSCRIPTEN) #if defined(SDLMAME_EMSCRIPTEN)
#include "modules/sound/js_sound.h" #include "modules/sound/js_sound.h"
#endif #endif
#if defined(SDLMAME_WIN32)
#include "modules/sound/direct_sound.h"
#endif
#if !defined(NO_DEBUGGER) #if !defined(NO_DEBUGGER)
#include "modules/debugger/debugqt.h" #include "modules/debugger/debugqt.h"
#endif #endif
@ -536,6 +539,10 @@ void sdl_osd_interface::video_register()
void sdl_osd_interface::sound_register() void sdl_osd_interface::sound_register()
{ {
sound_options_add("sdl", OSD_SOUND_SDL); sound_options_add("sdl", OSD_SOUND_SDL);
#if defined(SDLMAME_WIN32)
sound_options_add("dsound", OSD_SOUND_DIRECT_SOUND);
#endif
#if defined(SDLMAME_EMSCRIPTEN) #if defined(SDLMAME_EMSCRIPTEN)
sound_options_add("js", OSD_SOUND_JS); sound_options_add("js", OSD_SOUND_JS);
sound_options_add("auto", OSD_SOUND_JS); // making JS audio default one sound_options_add("auto", OSD_SOUND_JS); // making JS audio default one