Switch between speaker and handset for audio playback?

Discussion in 'iOS Programming' started by dbredesen, Aug 22, 2008.

  1. macrumors newbie

    Aug 17, 2008
    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.

  2. Moderator emeritus


    Jun 15, 2000
    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) ;)

Share This Page