title: AudioSession Settings for RemoteIO to play nice with iPod
body: <p>As I previously found <a href="https://stackoverflow.com/questions/6209565/starting-an-avassetreader-stopping-callbacks-to-a-remote-i-o-audiounit">here</a>.</p>
  
  <p>If you start running an AVAssetReader while using a Remote I/O callback to play audio, starting the AVAssetReader will block the Remote I/O callback unless you allow iPod mixing with...</p>
  
  <pre><code>UInt32 audioCategory = kAudioSessionCategory_MediaPlayback;
  AudioSessionSetProperty(kAudioSessionProperty_AudioCategory,sizeof(audioCategory),&amp;audioCategory);
  
  AudioSessionSetProperty(kAudioSessionProperty_OverrideCategoryMixWithOthers, sizeof (UInt32), &amp;(UInt32) {1});
  </code></pre>
  
  <p>However I am finding that this prevents the use of Audio Remote Control calls as setup <a href="https://stackoverflow.com/questions/6209565/starting-an-avassetreader-stopping-callbacks-to-a-remote-i-o-audiounit">here</a>.</p>
  
  <p>So...</p>
  
  <ul>
  <li>I need "MixWithOthers" ON to use an AVAssetReader </li>
  <li>I need "MixWithOthers" OFF to use Audio Remote Controls</li>
  </ul>
  
  <p>Does anyone know of how I can setup my AudioSession so I can use both?</p>