Skip to content

Commit

Permalink
faudio: minor change
Browse files Browse the repository at this point in the history
This translated xaudio2 driver may not be feasible to get working, but
I'll try at some point.
  • Loading branch information
rkitover committed Jan 2, 2019
1 parent 964f086 commit ff2d31b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/wx/faudio.cpp
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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!"));
Expand Down

0 comments on commit ff2d31b

Please sign in to comment.