title: How to implement pause function for Audio Units
body: <p>My code is based on <a href="http://cocoawithlove.com/2010/10/ios-tone-generator-introduction-to.html" rel="nofollow">this example</a> and a stop function is already implemented, there are functions to uninitialize and stop the audio unit:</p>
  
  <pre><code>    AudioOutputUnitStop(toneUnit);
      AudioUnitUninitialize(toneUnit);
      AudioComponentInstanceDispose(toneUnit);
      toneUnit = nil;
  </code></pre>
  
  <p>In the example I linked to a pause function is not necessary since there's only one frequency being played so there's no difference between pause and stop. In my implementation however, I'm playing a range of different frequencies and I want to be able to pause playback.</p>
  
  <p>Any ideas how this is done?</p>