• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Changing the audio session audio route (Speaker or none ) when using AVAudioPlayer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing the audio session audio route (Speaker or none ) when using AVAudioPlayer


  • Subject: Changing the audio session audio route (Speaker or none ) when using AVAudioPlayer
  • From: Inca Rose <email@hidden>
  • Date: Mon, 23 Mar 2009 09:38:57 +0200

Hi;
AVAudioPlayer plays using the default route of the Audio Session.
What hapend if I want to re route the audio to another output like
the speakers ?
Can I call

audioRoute = kAudioSessionOverrideAudioRoute_Speaker;
AudioSessionSetProperty(kAudioSessionProperty_OverrideAudioRoute, sizeof(audioRoute), &audioRoute);


Before calling [AVAudioPlayer play] ?

I think a new version of play ( or prepare to play ) with a new route parameter will be
a good idea for next version.



Thanks Inca R _______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Changing the audio session audio route (Speaker or none ) when using AVAudioPlayer
      • From: William Stewart <email@hidden>
  • Prev by Date: setClockDomain usage
  • Next by Date: Re: Writing m4a metadata
  • Previous by thread: Re: setClockDomain usage
  • Next by thread: Re: Changing the audio session audio route (Speaker or none ) when using AVAudioPlayer
  • Index(es):
    • Date
    • Thread