iDevGames Forums
Simple way to turn audio off? - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: Simple way to turn audio off? (/thread-1356.html)



Simple way to turn audio off? - johncmurphy - May 2, 2009 07:45 AM

I want to have an "Audio Off" switch in my game's settings. The game only has brief sound effects, and I am using Apple's SoundEffect class to play them.
I know I can do something like this for each of the sound effects
Code:
            if(appDelegate.soundOn)
              [opponentScoreSound play];
but is there a more elegant way to just shut the audio off?