title: Using AudioFileStreamParseBytes to parse bytes by reading from a file does not call kAudioFileStreamProperty_ReadyToProducePackets
body: <p>I am trying to parse bytes by opening a audio file (M4A), reading 2048 bytes in a loop and passing it to AudioFileStreamParseBytes. This does not call the callback with the property <code>kAudioFileStreamProperty_ReadyToProducePackets</code>. But the property <code>kAudioFileStreamProperty_FileFormat</code> is being successfully called. (So I know the callback mechanism is working.)</p>
  
  <p><strong>Questions</strong> : </p>
  
  <ol>
  <li>Can I use <code>AudioFileStreamParseBytes</code> to parse audio data by reading from a local file ? Most examples show how to use <code>AudioFileStreamParseBytes</code> by parsing <code>HTTP</code> stream data, but not reading from a local file.</li>
  <li>Has anyone tried to do the above and has been successful processing audio files ?</li>
  </ol>
  
  <p><strong>NOTE</strong> : The reason I am not using <code>AudioFileOpenWithCallbacks</code> to open the m4a file is that the api call is failing to open the following file after downloading it locally ( <a href="http://www.arsenal-music.com/podcast/arsenal-podcast-05.m4a" rel="nofollow">http://www.arsenal-music.com/podcast/arsenal-podcast-05.m4a</a> ). This m4a file has images embedded in it and <code>AudioFileOpenWithCallbacks</code> is not able to parse the file. At the same time I have used Matt Gallagher <code>AudioStreamer</code> code that opens this file, parses it and plays it fine. So I am leaning towards using <code>AudioFileStreamerParseBytes</code> by reading data from a local file. (As far as I understand there should be no difference whether the data is coming from HTTP stream or a local file. But I could be wrong.)</p>
  
  <p>I do not see any errors in the any API calls (just in case someone asks me this question). I can paste the code if needed, but all I want to know is if the approach of reading from file and passing it to <code>AudioFileStreamParseBytes</code> will work or not ?</p>