mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
SDL: Allow -sound dsound on SDL Windows builds. [R. Belmont]
This commit is contained in:
parent
8dca02f4ca
commit
d488f52c17
@ -409,6 +409,10 @@ OSDOBJS = \
|
||||
$(SDLOBJ)/output.o \
|
||||
$(SDLOBJ)/watchdog.o \
|
||||
|
||||
ifeq ($(BASE_TARGETOS),win32)
|
||||
$(OSDOBJ)/modules/sound/direct_sound.o
|
||||
endif
|
||||
|
||||
ifdef NO_USE_MIDI
|
||||
DEFS += -DDISABLE_MIDI=1
|
||||
endif
|
||||
|
@ -53,6 +53,9 @@
|
||||
#if defined(SDLMAME_EMSCRIPTEN)
|
||||
#include "modules/sound/js_sound.h"
|
||||
#endif
|
||||
#if defined(SDLMAME_WIN32)
|
||||
#include "modules/sound/direct_sound.h"
|
||||
#endif
|
||||
#if !defined(NO_DEBUGGER)
|
||||
#include "modules/debugger/debugqt.h"
|
||||
#endif
|
||||
@ -536,6 +539,10 @@ void sdl_osd_interface::video_register()
|
||||
void sdl_osd_interface::sound_register()
|
||||
{
|
||||
sound_options_add("sdl", OSD_SOUND_SDL);
|
||||
#if defined(SDLMAME_WIN32)
|
||||
sound_options_add("dsound", OSD_SOUND_DIRECT_SOUND);
|
||||
#endif
|
||||
|
||||
#if defined(SDLMAME_EMSCRIPTEN)
|
||||
sound_options_add("js", OSD_SOUND_JS);
|
||||
sound_options_add("auto", OSD_SOUND_JS); // making JS audio default one
|
||||
|
Loading…
Reference in New Issue
Block a user