From 3ff6bc6060a3db57c6dfca8e7a671ef709161fd6 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Thu, 5 Sep 2013 00:57:53 -0700 Subject: [PATCH] Don't block a null enqueue if already empty. --- Core/HLE/__sceAudio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/HLE/__sceAudio.cpp b/Core/HLE/__sceAudio.cpp index 4638b350f8..3b3105859f 100644 --- a/Core/HLE/__sceAudio.cpp +++ b/Core/HLE/__sceAudio.cpp @@ -155,7 +155,7 @@ u32 __AudioEnqueue(AudioChannel &chan, int chanNum, bool blocking) { // If there's anything on the queue at all, it should be busy, but we try to be a bit lax. //if (chan.sampleQueue.size() > chan.sampleCount * 2 * chanQueueMaxSizeFactor || chan.sampleAddress == 0) { - if (chan.sampleQueue.size() > 0 || chan.sampleAddress == 0) { + if (chan.sampleQueue.size() > 0) { if (blocking) { // TODO: Regular multichannel audio seems to block for 64 samples less? Or enqueue the first 64 sync? int blockSamples = (int)chan.sampleQueue.size() / 2 / chanQueueMinSizeFactor;