aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorNebuleon Fumika2013-02-05 16:05:16 -0500
committerNebuleon Fumika2013-02-05 16:05:16 -0500
commit3cd1e0327898acf0bd09a035c7a68c7362bb07c0 (patch)
tree81a4d6324f6443cd121e9eee0fcc67c5e73310f3 /source
parentdfa2d3cc68616ddc7e5c5fd1bb9f250fa44cd2fd (diff)
downloadsnesemu-3cd1e0327898acf0bd09a035c7a68c7362bb07c0.tar.gz
snesemu-3cd1e0327898acf0bd09a035c7a68c7362bb07c0.tar.bz2
snesemu-3cd1e0327898acf0bd09a035c7a68c7362bb07c0.zip
Change the upper screen updates to be double-buffered. Require that one audio buffer be free (1 out of 4).
Diffstat (limited to 'source')
-rw-r--r--source/nds/entry.cpp2
-rw-r--r--source/nds/gui.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/nds/entry.cpp b/source/nds/entry.cpp
index de30332..18802a0 100644
--- a/source/nds/entry.cpp
+++ b/source/nds/entry.cpp
@@ -987,7 +987,7 @@ void S9xProcessSound (unsigned int)
unsigned int Now = getSysTime();
if (Now - LastSoundEmissionTime >= SOUND_EMISSION_INTERVAL)
{
- if(ds2_checkAudiobuff() > 4)
+ if(ds2_checkAudiobuff() > AUDIO_BUFFER_COUNT - 1)
{
LastSoundEmissionTime++;
return;
diff --git a/source/nds/gui.h b/source/nds/gui.h
index b2eae62..e8302eb 100644
--- a/source/nds/gui.h
+++ b/source/nds/gui.h
@@ -24,7 +24,7 @@
#include "fs_api.h"
#include "gcheat.h"
-#define UP_SCREEN_UPDATE_METHOD 0
+#define UP_SCREEN_UPDATE_METHOD 1
#define DOWN_SCREEN_UPDATE_METHOD 2
#define MAX_GAMEPAD_MAP 16