diff options
Diffstat (limited to 'source/globals.cpp')
-rw-r--r-- | source/globals.cpp | 7 |
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]; |