title: How Do I Route Audio to Speaker without using AudioSessionSetProperty?
body: <p>As <code>AudioSessionSetProperty</code> may become <code>deprecated</code>, I'm trying to find an code example of how to route audio to the <code>speaker</code> using other means.</p>
  
  <p>Previously I did the following:</p>
  
  <pre><code>-(void)setSpeakerEnabled
  {
      debugLog(@"%s",__FUNCTION__);
      UInt32 audioRouteOverride = kAudioSessionOverrideAudioRoute_Speaker;
  
      AudioSessionSetProperty (
                           kAudioSessionProperty_OverrideAudioRoute,
                           sizeof (audioRouteOverride),
                           &amp;audioRouteOverride
                           );
  }
  </code></pre>
  
  <p>Trying to get same result but <code>without call</code> to <code>AudioSessionSetProperty</code>.</p>