PDA

View Full Version : Switch between speaker and handset for audio playback?




dbredesen
Aug 23, 2008, 12:11 AM
I cannot find any documentation in the SDK docs regarding switching audio playback between the speaker and the built-in earpiece, i.e. like the two options that iPhone voicemail playback provides. In fact, the only reference in documentation to this topic is one passage which states:

How do I control where sounds play (built-in speaker, dock connector, headphones)?
iPhone OS sends audio to the appropriate device, depending on user preferences.

This doesn't get me anywhere. Is there an undocumented way of switching where audio output gets routed?

Thanks for any help you can provide.

--d



kainjow
Aug 23, 2008, 01:46 PM
Is there an undocumented way of switching where audio output gets routed?

I'm sure there is. I'm sure it's not easy, and I'm sure Apple won't distribute your app if you use it (especially if it requires linking against a private framework) ;)