1

Possible Duplicate:
How to Play a sound using AVAudioPlayer when in Silent Mode in iPhone

Yes, I know, that user asked silence, but it's really necessary in this application and it's predictable for user.

So, is it possible to play sound in silent mode?

Sound is encoded so it's decoding and filling buffer of queue with audio data (if needed - could copy code here). Usually, as I figured out, AVAudioSession is using, but is it possible to use it to play not 'full'-file, but file in pieces (packages).

Community
  • 1
  • 1
Konstantin Loginov
  • 15,802
  • 5
  • 58
  • 95
  • Jason, thank you! I was confused, that Audio Queue service and Audio Player is near the same. Thanks again : adding this code fix the problem: 'AVAudioSession audioSession = AVAudioSession.SharedInstance(); NSError error; audioSession.SetCategory(AVAudioSession.CategoryPlayback,out error); audioSession.SetActive(true,out error); UIApplication.SharedApplication.BeginReceivingRemoteControlEvents();' – Konstantin Loginov Dec 25 '12 at 08:59
  • @KonstantinLoginov you can answer your own question in stackoverflow.com - it's better that way, since people looking for a similar question will see there's an answer available :-) – poupou Dec 25 '12 at 19:40

0 Answers0