title: Playback through a bluetooth connected speaker
body: <p>In my app I am using the play and record category aka:</p>
  
  <pre><code>UInt32 sessionCategory = kAudioSessionCategory_PlayAndRecord;
  CheckError( AudioSessionSetProperty (kAudioSessionProperty_AudioCategory,
                                       sizeof (sessionCategory),
                                       &amp;sessionCategory), "Couldn't set audio category");    
  </code></pre>
  
  <p>In the app any audio that plays would initially output through the receiver until I set this:</p>
  
  <pre><code>UInt32 doChangeDefaultRoute = 1;        
  AudioSessionSetProperty (kAudioSessionProperty_OverrideCategoryDefaultToSpeaker, sizeof (doChangeDefaultRoute), &amp;doChangeDefaultRoute);  
  </code></pre>
  
  <p>What I actually want however is for audio to output through a connected bluetooth speaker. For example I have a speaker that I connect with via bluetooth. I am able to play music through it with the native music app. However in my app when using the playandrecord category it only plays on the device. I have tried:</p>
  
  <pre><code>UInt32 allowBluetoothInput = 1;
  OSStatus stat = AudioSessionSetProperty (
                                           kAudioSessionProperty_OverrideCategoryEnableBluetoothInput,
                                           sizeof (allowBluetoothInput),
                                           &amp;allowBluetoothInput
                                           );
  </code></pre>
  
  <p>As well as:</p>
  
  <pre><code>CFStringRef audioRouteOverride = kAudioSessionOutputRoute_BluetoothHFP;
  
  OSStatus s = AudioSessionSetProperty (kAudioSessionProperty_OutputDestination,
                                        sizeof(audioRouteOverride),&amp;audioRouteOverride);
  </code></pre>
  
  <p>No luck. It seems as though this should be an easy property set but Idk. Any ideas?</p>