SPU2-X: Minor fix for very rare cases of hang-on-suspend when using the XA2 driver.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2120 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
Jake.Stine 2009-11-02 21:07:22 +00:00
parent 5b726f0b11
commit 4fc93dded4
1 changed files with 2 additions and 1 deletions

View File

@ -181,8 +181,9 @@ private:
IXAudio2SourceVoice* killMe = pSourceVoice;
pSourceVoice = NULL;
killMe->FlushSourceBuffers();
EnterCriticalSection( &cs );
killMe->DestroyVoice();
EnterCriticalSection( &cs );
safe_delete_array( qbuffer );
LeaveCriticalSection( &cs );
DeleteCriticalSection( &cs );