From 429b8ceba2370318a324bd976f43aa0df936c2c6 Mon Sep 17 00:00:00 2001 From: ZachBacon Date: Tue, 25 Dec 2018 19:57:49 -0500 Subject: [PATCH] I'm pretty sure some of this is very hacky and needs correcting, but it compiles at least. --- src/wx/faudio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wx/faudio.cpp b/src/wx/faudio.cpp index 62c45649b..bc4b92e58 100644 --- a/src/wx/faudio.cpp +++ b/src/wx/faudio.cpp @@ -387,7 +387,7 @@ bool FAudio_Output::init(long sampleRate) // create sound emitter //This should be FAudio_CreateSourceVoice() //hr = faud->CreateSourceVoice(&sVoice, &wfx, 0, 4.0f, ¬ify); - hr = FAudio_CreateSourceVoice(faud, &sVoice, (const FAudioWaveFormatEx*)&wfx, 0, 4.0f, ¬ify); + hr = FAudio_CreateSourceVoice(faud, &sVoice, (const FAudioWaveFormatEx*)&wfx, 0, 4.0f, ¬ify, NULL, NULL); if (hr != S_OK) { wxLogError(_("FAudio: Creating source voice failed!")); @@ -561,7 +561,7 @@ void FAudio_Output::write(uint16_t* finalWave, int length) buf.pAudioData = &buffers[currentBuffer * soundBufferLen]; currentBuffer++; currentBuffer %= (bufferCount + 1); // + 1 because we need one temporary buffer - HRESULT hr = FAudioSourceVoice_SubmitSourceBuffer(sVoice, &buf); // send buffer to queue. + HRESULT hr = FAudioSourceVoice_SubmitSourceBuffer(sVoice, &buf, NULL); // send buffer to queue. assert(hr == S_OK); }