title: AudioUnit Output Stream Bluetooth
body: <p>I'm trying to stream my audio (output from AudioUnit callback) to bluetooth audio device.
  I found <a href="http://developer.apple.com/library/ios/#documentation/Audio/Conceptual/AudioSessionProgrammingGuide/Cookbook/Cookbook.html" rel="nofollow noreferrer">this</a> from Apple doc.
  So try this code, but nothing happens:</p>
  
  <pre><code>int audioCategory = kAudioSessionCategory_PlayAndRecord;
  int audioRoute = kAudioSessionOverrideAudioRoute_Speaker;
  AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(audioCategory, &amp;audioCategory);
  AudioSessionSetProperty(kAudioSessionProperty_OverrideAudioRoute, sizeof(audioRoute, &amp;audioRoute);
  AudioSessionSetActive(true);
  </code></pre>
  
  <p>related : <a href="https://stackoverflow.com/questions/10841065/playback-through-a-bluetooth-connected-speaker">link</a></p>