This seems like a good idea as well, ref #254

--HG--
branch : develop
This commit is contained in:
kaetemi 2015-11-15 12:27:58 +01:00
parent 3d59db1021
commit 2c3d5454a1

View file

@ -667,6 +667,8 @@ void CSourceXAudio2::stop()
// stop source voice and remove pending buffers
_SoundDriver->getXAudio2()->CommitChanges(_OperationSet);
if (FAILED(_SourceVoice->ExitLoop()))
nlwarning(NLSOUND_XAUDIO2_PREFIX "FAILED ExitLoop");
if (FAILED(_SourceVoice->Stop(0)))
nlwarning(NLSOUND_XAUDIO2_PREFIX "FAILED Stop");
if (FAILED(_SourceVoice->FlushSourceBuffers()))