(SDL2) Use sdl_audio.c as audio driver
This commit is contained in:
parent
e07dca3d22
commit
f53b67aab7
2
Makefile
2
Makefile
|
@ -214,7 +214,7 @@ ifeq ($(HAVE_SDL), 1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(HAVE_SDL2), 1)
|
ifeq ($(HAVE_SDL2), 1)
|
||||||
OBJ += gfx/sdl2_gfx.o input/sdl2_input.o input/sdl2_joypad.o
|
OBJ += gfx/sdl2_gfx.o input/sdl2_input.o input/sdl2_joypad.o audio/sdl_audio.o
|
||||||
JOYCONFIG_OBJ += input/sdl2_joypad.o
|
JOYCONFIG_OBJ += input/sdl2_joypad.o
|
||||||
JOYCONFIG_LIBS += $(SDL2_LIBS)
|
JOYCONFIG_LIBS += $(SDL2_LIBS)
|
||||||
DEFINES += $(SDL2_CFLAGS) $(BSD_LOCAL_INC)
|
DEFINES += $(SDL2_CFLAGS) $(BSD_LOCAL_INC)
|
||||||
|
|
|
@ -193,6 +193,10 @@ const audio_driver_t audio_sdl = {
|
||||||
sdl_audio_set_nonblock_state,
|
sdl_audio_set_nonblock_state,
|
||||||
sdl_audio_free,
|
sdl_audio_free,
|
||||||
NULL,
|
NULL,
|
||||||
|
#ifdef HAVE_SDL2
|
||||||
|
"sdl2"
|
||||||
|
#else
|
||||||
"sdl"
|
"sdl"
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue