From ff2d31bf5ea6af6981d39b8ed19ef158084ec737 Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Wed, 2 Jan 2019 07:16:08 -0800 Subject: [PATCH] faudio: minor change This translated xaudio2 driver may not be feasible to get working, but I'll try at some point. --- src/wx/faudio.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/wx/faudio.cpp b/src/wx/faudio.cpp index 268d3d4a..3c9cc462 100644 --- a/src/wx/faudio.cpp +++ b/src/wx/faudio.cpp @@ -26,8 +26,6 @@ int GetFADevices(FAudio* fa, wxArrayString* names, wxArrayString* ids, HRESULT hr; UINT32 dev_count = 0; - wxLogDebug("IN FAUDIO INIT"); - hr = FAudio_GetDeviceCount(fa, &dev_count); if (hr != S_OK) { @@ -62,6 +60,7 @@ bool GetFADevices(wxArrayString& names, wxArrayString& ids) #ifdef _DEBUG flags = FAUDIO_DEBUG_ENGINE; #endif + hr = FAudioCreate(&fa, flags, FAUDIO_DEFAULT_PROCESSOR); //Apparently this needs 3 parameters, the processor. if (hr != S_OK) { @@ -347,7 +346,7 @@ bool FAudio_Output::init(long sampleRate) //#ifdef _DEBUG // flags = FAUDIO_DEBUG_ENGINE; //#endif - hr = FAudioCreate(&faud, flags, FAUDIO_DEFAULT_CHANNELS); + hr = FAudioCreate(&faud, flags, FAUDIO_DEFAULT_PROCESSOR); if (hr != S_OK) { wxLogError(_("The FAudio interface failed to initialize!"));