Skip to content

Commit

Permalink
add wasapi audio driver
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoran Vuckovic authored and inactive123 committed Apr 10, 2017
1 parent c6887aa commit 129151d
Show file tree
Hide file tree
Showing 27 changed files with 766 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,12 @@ ifeq ($(HAVE_DSOUND), 1)
LIBS += -ldxguid -ldsound
endif

ifeq ($(HAVE_WASAPI), 1)
OBJ += audio/drivers/wasapi.o
DEFINES += -DHAVE_WASAPI
LIBS += -lole32 -lksuser
endif

ifeq ($(HAVE_XAUDIO), 1)
OBJ += audio/drivers/xaudio.o
DEFINES += -DHAVE_XAUDIO
Expand Down
1 change: 1 addition & 0 deletions Makefile.win
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ TARGET = retroarch.exe
HAVE_DINPUT = 1
HAVE_XAUDIO = 1
HAVE_DSOUND = 1
HAVE_WASAPI = 1
HAVE_OPENGL = 1
HAVE_FBO = 1
HAVE_DYLIB = 1
Expand Down
3 changes: 3 additions & 0 deletions audio/audio_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ static const audio_driver_t *audio_drivers[] = {
#ifdef HAVE_DSOUND
&audio_dsound,
#endif
#ifdef HAVE_WASAPI
&audio_wasapi,
#endif
#ifdef HAVE_PULSE
&audio_pulse,
#endif
Expand Down
1 change: 1 addition & 0 deletions audio/audio_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ extern audio_driver_t audio_sdl;
extern audio_driver_t audio_xa;
extern audio_driver_t audio_pulse;
extern audio_driver_t audio_dsound;
extern audio_driver_t audio_wasapi;
extern audio_driver_t audio_coreaudio;
extern audio_driver_t audio_xenon360;
extern audio_driver_t audio_ps3;
Expand Down
Loading

0 comments on commit 129151d

Please sign in to comment.