• 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-initialize audio session on the fly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re-initialize audio session on the fly


  • Subject: Re-initialize audio session on the fly
  • From: Beinan Li <email@hidden>
  • Date: Fri, 07 Feb 2014 12:01:14 -0500

Hello CoreAudio,

In our iOS app, there are two competing sound engines running (yes very unfortunate).
The first one is from 3rd party and is black box to us. It initializes the audio session before us.
The second one is us.

The first engine probably registered its own audio session interruption listener during session initialization, so that our listener is bypassed.

We cannot negotiate the initialization order with them.

Now my questions is: Is it possible for us to reinitialize the audio session and plug in our interruption listener at that time, or is there a way to plugin in the listener during a session?  

I cannot find any doc about this. From my experiments, as soon as the session is done, further initialization will get return code kAudioSessionAlreadyInitialized ('init'). The session listener won't work. There is no "termination" API for the session either. 

I also tried playing around AudioSessionSetActive() to no avail.

If my goal can't be achieved, I guess the only way will be to negotiate with the 3rd party to open a gate in their listener to us.

Thanks,
Beinan



 _______________________________________________
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: Re-initialize audio session on the fly
      • From: Douglas Scott <email@hidden>
  • Prev by Date: GM in iOS
  • Next by Date: Re: Re-initialize audio session on the fly
  • Previous by thread: Re: GM in iOS
  • Next by thread: Re: Re-initialize audio session on the fly
  • Index(es):
    • Date
    • Thread