mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-15 14:08:42 +00:00
This seems like a good idea as well, ref #254
This commit is contained in:
parent
263b12f137
commit
a3b049e03b
1 changed files with 2 additions and 0 deletions
|
@ -667,6 +667,8 @@ void CSourceXAudio2::stop()
|
||||||
|
|
||||||
// stop source voice and remove pending buffers
|
// stop source voice and remove pending buffers
|
||||||
_SoundDriver->getXAudio2()->CommitChanges(_OperationSet);
|
_SoundDriver->getXAudio2()->CommitChanges(_OperationSet);
|
||||||
|
if (FAILED(_SourceVoice->ExitLoop()))
|
||||||
|
nlwarning(NLSOUND_XAUDIO2_PREFIX "FAILED ExitLoop");
|
||||||
if (FAILED(_SourceVoice->Stop(0)))
|
if (FAILED(_SourceVoice->Stop(0)))
|
||||||
nlwarning(NLSOUND_XAUDIO2_PREFIX "FAILED Stop");
|
nlwarning(NLSOUND_XAUDIO2_PREFIX "FAILED Stop");
|
||||||
if (FAILED(_SourceVoice->FlushSourceBuffers()))
|
if (FAILED(_SourceVoice->FlushSourceBuffers()))
|
||||||
|
|
Loading…
Reference in a new issue