title: Looping AAC file with ExtAudioFileRead - bug?
body: <p>Reading audio files on iOS with ExtAudioFileRead, it seems that reaching eof completely freezes the reader… Example, assumes _abl AudioBufferList and _eaf ExtendedAudioFileRef are allocated and correctly configured:</p>
  
  <pre><code>- ( void )testRead
  {
      UInt32 requestedFrames = 1024;
      UInt32 numFrames = requestedFrames;
      OSStatus error = 0;
  
      error = ExtAudioFileRead( _eaf, &amp;numFrames, _abl );
  
      if( numFrames &lt; requestedFrames ) //eof, want to read enough frames from the beginning of the file to reach requestedFrames and loop gaplessly
      {
           requestedFrames = requestedFrames - numFrames;
           numFrames = requestedFrames;
           // move some pointers in _abl's buffers to write at the correct offset
           error = ExtAudioFileSeek( _eaf, 0 );
           error = ExtAudioFileRead( _eaf, &amp;numFrames, _abl );
           if( numFrames != requestedFrames ) //Now this call always sets numFrames to the same value as the previous read call...
           {
               NSLog( @"Oh no!" );
           }
      }
  }
  </code></pre>
  
  <p>No errors, always the same behavior, exactly as if the reader was stuck at the end of the file. ExtAudioFileTell confirms the requested seek, btw. Also tried keeping track of the position in the file to request only the number of frames available at eof, same result: as soon as the last packet is read, seek seems to have no effect.</p>
  
  <p>Happily seeking in other circumstances.</p>
  
  <p>Bug? Feature? Imminent face palm? I'd very much appreciate any help in solving this!</p>
  
  <p>I'm testing this on an iPad 3 ( iOS7.1 ).</p>
  
  <p>Cheers,</p>
  
  <p>Gregzo</p>