• 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
iPhone and AudioSessionInitialize()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iPhone and AudioSessionInitialize()


  • Subject: iPhone and AudioSessionInitialize()
  • From: "Roni Music" <email@hidden>
  • Date: Wed, 5 May 2010 16:42:12 +0200


Am I correct in my assumption that once you have initialized an AudioSession
OSStatus err = AudioSessionInitialize(NULL, NULL, interruptionListenerCallback1, self);


then there is no way to "reinitialize" it using another callback, for example:
OSStatus err = AudioSessionInitialize(NULL, NULL, interruptionListenerCallback2, self);
returns an 'init' error which I assume means "already initialized".


My iPhone app now contains two separate parts (an audio player and one audio recorder)
and the code would be much simpler (and nicer looking) if each part could have it's own
interruptionListenerCallback (and audio route change callback).


Thanks,
Rolf

_______________________________________________
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: iPhone and AudioSessionInitialize()
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: Are there any major hosts that currently DO NOT support Cocoa UIs for AUs?
  • Next by Date: Re: iPhone and AudioSessionInitialize()
  • Previous by thread: Re: Maximum iPhone sample rate
  • Next by thread: Re: iPhone and AudioSessionInitialize()
  • Index(es):
    • Date
    • Thread