From 88135c52f8367549d6c864df193018f5a6cb2b35 Mon Sep 17 00:00:00 2001 From: Nebuleon Fumika Date: Sat, 19 Jan 2013 20:28:17 -0500 Subject: Remove unneeded volatility, enabling more optimisations. Sound volatility is #define'd away, GUI volatility is simply removed. --- source/globals.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/globals.cpp') 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]; -- cgit v1.2.3