Skip to content

Commit

Permalink
finish connecting new faudio driver
Browse files Browse the repository at this point in the history
Add cmake code to find and link faudio if enabled.

Fix typo for get devices faudio method in wxvbam.h

Selecting the faudio driver now works, but the driver not does
unfortunately.
  • Loading branch information
rkitover committed Dec 26, 2018
1 parent 296e8e1 commit 3ed08e8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/wx/CMakeLists.txt
Expand Up @@ -44,6 +44,10 @@ else(ENABLE_OPENAL)
ADD_DEFINITIONS (-DNO_OAL)
endif(ENABLE_OPENAL)

if(ENABLE_FAUDIO)
find_package(FAudio REQUIRED)
endif()

IF(CMAKE_BUILD_TYPE STREQUAL "Debug")
SET(wxWidgets_USE_DEBUG ON) # noop if wx is compiled with --disable-debug, like in Mac Homebrew atm
ENDIF()
Expand Down Expand Up @@ -605,6 +609,7 @@ TARGET_LINK_LIBRARIES (
${DIRECTX_LIBRARIES}
${GTK_LIBRARIES}
${OPENAL_LIBRARY}
FAudio
)

if(ENABLE_FFMPEG)
Expand Down
8 changes: 7 additions & 1 deletion src/wx/wxvbam.h
Expand Up @@ -711,10 +711,16 @@ extern bool GetOALDevices(wxArrayString& names, wxArrayString& ids);
#ifdef __WXMSW__
extern SoundDriver* newDirectSound();
extern bool GetDSDevices(wxArrayString& names, wxArrayString& ids);

#ifndef NO_XAUDIO2
extern SoundDriver* newXAudio2_Output();
extern bool GetXA2Devices(wxArrayString& names, wxArrayString& ids);
#endif

#ifndef NO_FAUDIO
extern SoundDriver* newFAudio_Output();
extern bool GetFSDevices(wxArrayString& names, wxArrayString& ids);
extern bool GetFADevices(wxArrayString& names, wxArrayString& ids);
#endif
#endif

extern bool debugger;
Expand Down

0 comments on commit 3ed08e8

Please sign in to comment.