aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorNebuleon Fumika2013-02-06 02:53:53 -0500
committerNebuleon Fumika2013-02-06 02:53:53 -0500
commitb08a201ea2de43d70047673114c705a26887ea4b (patch)
tree7b42878292f93440a4164191b89924b8c2b3e38d /source
parent9829c836089c44d5c8cc7e3d0f7007ab33b0cb1a (diff)
downloadsnes9x2005-b08a201ea2de43d70047673114c705a26887ea4b.tar.gz
snes9x2005-b08a201ea2de43d70047673114c705a26887ea4b.tar.bz2
snes9x2005-b08a201ea2de43d70047673114c705a26887ea4b.zip
Allow all audio buffers to get full again before declaring underflow.
Diffstat (limited to 'source')
-rw-r--r--source/nds/entry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/nds/entry.cpp b/source/nds/entry.cpp
index 8b1724e..a5a98de 100644
--- a/source/nds/entry.cpp
+++ b/source/nds/entry.cpp
@@ -1053,7 +1053,7 @@ void S9xProcessSound (unsigned int)
unsigned int Now = getSysTime();
if (Now - LastSoundEmissionTime >= SOUND_EMISSION_INTERVAL)
{
- if(ds2_checkAudiobuff() > AUDIO_BUFFER_COUNT - 1)
+ if(ds2_checkAudiobuff() > AUDIO_BUFFER_COUNT)
{
LastSoundEmissionTime++;
return;