title: How do I stream AVAsset audio wirelessly form one iOS device to another?
body: <p>I'm making something like streaming the audio from iPod library, send the data via network or bluetooth, and playback using audio queue.</p>
  
  <p>Thanks for this <a href="https://stackoverflow.com/questions/12264799/why-is-audio-coming-up-garbled-when-using-avassetreader-with-audio-queue">question and code</a>. Help me a lot.</p>
  
  <p>I have two question about it.</p>
  
  <ol>
  <li><p>what should I send from one device to another? CMSampleBufferRef? AudioBuffer? mData? AudioQueueBuffer? packet? I have no idea.</p></li>
  <li><p>When the app finished the playing, it crashed, and I got error (-12733). I just want to know how to handle the errors instead of letting it crash. (check the OSState? When the error happened, stop it?) </p>
  
  <p>Error: could not read sample data (-12733)</p></li>
  </ol>