From 99795b270d3410f90d9e49fa85822dcae0653b5f Mon Sep 17 00:00:00 2001 From: ZachBacon Date: Tue, 18 Dec 2018 10:24:39 -0500 Subject: [PATCH] cmake hookup is done, there are some issues that I'll be trying to fix within faudio.cpp before it's ready for mainstream --- src/wx/CMakeLists.txt | 1 + src/wx/faudio.cpp | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wx/CMakeLists.txt b/src/wx/CMakeLists.txt index 1a9ca412..8c8f338b 100644 --- a/src/wx/CMakeLists.txt +++ b/src/wx/CMakeLists.txt @@ -605,6 +605,7 @@ TARGET_LINK_LIBRARIES ( ${DIRECTX_LIBRARIES} ${GTK_LIBRARIES} ${OPENAL_LIBRARY} + faudio ) if(ENABLE_FFMPEG) diff --git a/src/wx/faudio.cpp b/src/wx/faudio.cpp index 87553851..4ffcb791 100644 --- a/src/wx/faudio.cpp +++ b/src/wx/faudio.cpp @@ -10,7 +10,6 @@ // Faudio #include -#endif // MMDevice API #include @@ -60,7 +59,7 @@ bool GetFA2Devices(wxArrayString& names, wxArrayString& ids) #ifdef _DEBUG flags = FAUDIO_DEBUG_ENGINE; #endif - hr = FAudioreate(&xa, flags); + hr = FAudioreate(&fa, flags); if (hr != S_OK) { wxLogError(_("The FAudio interface failed to initialize!"));