Skip to content

Commit

Permalink
Fix XAudio2 DequeueProcessedBuffers
Browse files Browse the repository at this point in the history
FlushSourceBuffers flushes all the pending buffers, not only just the
processed buffers.
  • Loading branch information
GoaLitiuM committed May 1, 2024
1 parent 1761ac6 commit 6444a9e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Source/Engine/Audio/XAudio2/AudioBackendXAudio2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,8 +686,6 @@ void AudioBackendXAudio2::Source_DequeueProcessedBuffers(AudioSource* source)
auto aSource = XAudio2::GetSource(source);
if (aSource && aSource->Voice)
{
const HRESULT hr = aSource->Voice->FlushSourceBuffers();
XAUDIO2_CHECK_ERROR(FlushSourceBuffers);
aSource->BuffersProcessed = 0;
}
}
Expand Down

0 comments on commit 6444a9e

Please sign in to comment.