title: AVAudioSession AudioSessionSetProperty is deprecated in iOS 7, how to update the codes?
body: <p>How do I change the following line to iOS 7 compliant code?</p>
  
  <pre><code>UInt32 doChangeDefaultRoute = 1;
  AudioSessionSetProperty(kAudioSessionProperty_AudioRoute, sizeof(doChangeDefaultRoute), &amp;doChangeDefaultRoute);
  </code></pre>
  
  <p>kAudioSessionProperty_AudioRoute was used before iOS 5. in iOS 5-6 it should be kAudioSessionProperty_AudioRouteDescription but it is read-only. Seems this property is set incorrectly but strangely but it doesn't produce an error after I upgrade iOS deploy target to iOS 7.</p>