mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Might as well mutex here to be safe.
This commit is contained in:
parent
82c56dccff
commit
a349ef0f52
1 changed files with 3 additions and 0 deletions
|
@ -195,6 +195,8 @@ namespace DSound
|
|||
if (!dsBuffer)
|
||||
return;
|
||||
|
||||
EnterCriticalSection(&soundCriticalSection);
|
||||
|
||||
if (threadData == 0)
|
||||
threadData = 1;
|
||||
|
||||
|
@ -217,6 +219,7 @@ namespace DSound
|
|||
if (soundSyncEvent != NULL)
|
||||
CloseHandle(soundSyncEvent);
|
||||
soundSyncEvent = NULL;
|
||||
LeaveCriticalSection(&soundCriticalSection);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue