title: iOS and Cocos2d - Play sound once in game loop
body: <p>This is more of a general "best practice" question, so I don't really have an example. I'm just trying to figure out how people usually approach this.<br/>
  Let's say I have a mainGameLoop method, scheduled to be called 60 times a second. In this method, I have all the logic for the current scene. Now, I want to play a sound effect using SimpleAudioEngine when a certain state occurs.<br/>
  The issue is, once this state occurs, it stays like that for a while, which means my sound effect will be rapidly played over and over again until the state changes (after all, we're inside the game loop).<br/>
  My usual solution for this, is to use booleans to play the effect only once. Problem is, I am now facing a larger number of different states and effects, which means quite a lot of booleans.<br/>
  <br/>
  I was wondering if there's a better way people usually use when playing sound effects in the game loop.<br/>
  Any suggestions?</p>