mirror of https://github.com/PCSX2/pcsx2.git
SPU2-X: Minor bugfix to suspend/shutdown code which caused SPU2-X to hang in very rare occasions.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1999 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
7533e00816
commit
8b0cbe445a
|
@ -209,7 +209,11 @@ private:
|
||||||
EnterCriticalSection( &cs );
|
EnterCriticalSection( &cs );
|
||||||
|
|
||||||
// All of these checks are necessary because XAudio2 is wonky shizat.
|
// All of these checks are necessary because XAudio2 is wonky shizat.
|
||||||
if( pSourceVoice == NULL || context == NULL ) return;
|
if( pSourceVoice == NULL || context == NULL )
|
||||||
|
{
|
||||||
|
LeaveCriticalSection( &cs );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
T* qb = (T*)context;
|
T* qb = (T*)context;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue