• 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
Re: sleep silences music in iPhone OS 2.2?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sleep silences music in iPhone OS 2.2?


  • Subject: Re: sleep silences music in iPhone OS 2.2?
  • From: John Zorko <email@hidden>
  • Date: Sat, 29 Nov 2008 06:05:17 -0800


Allan et al,

Thank you very much -- i've implemented Apple's solution and the problem has disappeared :-)

The default audio session category was changed in iPhone OS 2.2 from MediaPlayback to SoloAmbientSound.  SoloAmbientSound has a number of behaviors that differ from MediaPlayback -- it "obeys" the ringer switch, and it does not continue playback after the display locks.

To change back to MediaPlayback (or another category) you can use the Audio Session API.  

See the Audio Session programming guide (especially "Why a Default Audio Session Usually Isn’t What You Want"):
http://developer.apple.com/iphone/library/documentation/Audio/Conceptual/AudioSessionProgrammingGuide

and also Technical Q&A 1626 - "Ensuring audio playback continues when screen is locked":
http://developer.apple.com/iphone/library/qa/qa2008/qa1626.html

Regards,

John

Falling You - exploring the beauty of voice and sound
http://www.fallingyou.com











 _______________________________________________
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

References: 
 >sleep silences music in iPhone OS 2.2? (From: John Zorko <email@hidden>)
 >Re: sleep silences music in iPhone OS 2.2? (From: Allan Schaffer <email@hidden>)

  • Prev by Date: Re: sleep silences music in iPhone OS 2.2?
  • Next by Date: enough!
  • Previous by thread: Re: sleep silences music in iPhone OS 2.2?
  • Next by thread: QT Audio Streaming
  • Index(es):
    • Date
    • Thread