mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
5b726f0b11
commit
4fc93dded4
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue