mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Wake waiting threads on channel release.
This commit is contained in:
parent
2e7b971895
commit
a0b333865c
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ inline void __AudioWakeThreads(AudioChannel &chan, int step)
|
|||
for (size_t w = 0; w < chan.waitingThreads.size(); ++w)
|
||||
{
|
||||
AudioChannelWaitInfo &waitInfo = chan.waitingThreads[w];
|
||||
waitInfo.numSamples -= hwBlockSize;
|
||||
waitInfo.numSamples -= step;
|
||||
|
||||
// If it's done (there will still be samples on queue) and actually still waiting, wake it up.
|
||||
if (waitInfo.numSamples <= 0 && __KernelGetWaitID(waitInfo.threadID, WAITTYPE_AUDIOCHANNEL, error) != 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue