title: How do you pause, stop and reset an AUFilePlayer?
body: <p>I am working with core audio using an AUFilePlayer to load a few mp3s into a mixer unit, everything plays great however I am unable to pause the music or rewind the music back to the start. I tried Starting and stopping the AudioGraph, but once the playback is stopped, I can't get it to restart. I also tried using AudioUnitSetProperty to set the file playback to 0</p>
  
  <p>i.e something along these lines:</p>
  
  <pre><code>        ScheduledAudioFileRegion rgn;
          memset (&amp;rgn.mTimeStamp, 0, sizeof(rgn.mTimeStamp));
          rgn.mTimeStamp.mFlags = kAudioTimeStampSampleTimeValid;
          rgn.mTimeStamp.mSampleTime = 0;
          rgn.mCompletionProc = NULL;
          rgn.mCompletionProcUserData = NULL;
          rgn.mAudioFile = inputFile;
          rgn.mLoopCount = 1;
          rgn.mStartFrame = 0;
  
          rgn.mFramesToPlay = nPackets * inputFormat.mFramesPerPacket;
  
          AudioUnitSetProperty(fileUnit, kAudioUnitProperty_ScheduledFileRegion, 
                               kAudioUnitScope_Global, 0,&amp;rgn, sizeof(rgn));
  </code></pre>
  
  <p>Any suggestions? </p>