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!"));