aboutsummaryrefslogtreecommitdiff
path: root/source/globals.cpp
diff options
context:
space:
mode:
authorNebuleon Fumika2013-01-19 20:28:17 -0500
committerNebuleon Fumika2013-01-19 20:28:17 -0500
commit88135c52f8367549d6c864df193018f5a6cb2b35 (patch)
tree57ae06a89349f86544f00060adbf2cdc396a8374 /source/globals.cpp
parent2bb2ee8c0aee044998858ff8263be71cb908a663 (diff)
downloadsnes9x2005-88135c52f8367549d6c864df193018f5a6cb2b35.tar.gz
snes9x2005-88135c52f8367549d6c864df193018f5a6cb2b35.tar.bz2
snes9x2005-88135c52f8367549d6c864df193018f5a6cb2b35.zip
Remove unneeded volatility, enabling more optimisations. Sound volatility is #define'd away, GUI volatility is simply removed.
Diffstat (limited to 'source/globals.cpp')
-rw-r--r--source/globals.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/globals.cpp b/source/globals.cpp
index a4efb46..d24816b 100644
--- a/source/globals.cpp
+++ b/source/globals.cpp
@@ -216,7 +216,14 @@ uint32 current_graphic_format = RGB565;
struct SCheatData Cheat;
+// Define NO_VOLATILE_SOUND if you're always reading or writing sound from one
+// thread or one co-routine. If you're using interrupts or a thread, sound must
+// be volatile.
+#ifndef NO_VOLATILE_SOUND
volatile SoundStatus so;
+#else
+SoundStatus so;
+#endif
int Echo [24000];
int DummyEchoBuffer [SOUND_BUFFER_SIZE];