Order of steps for audio system initialization
Order of steps for audio system initialization
- Subject: Order of steps for audio system initialization
- From: Jan <email@hidden>
- Date: Thu, 26 Sep 2013 18:34:58 +0200
Hi,
We are running into an issue where we are unable to activate our audio session if the app is launched via Inter-App Audio. Activating our audio session later in the audio system initialization (after our graph has been initialized and started, and the IAA node has been published) seems to fix the issue, but I am wondering if there might be other issues with that.
What are the recommended order of steps for initializing an audio system. Specifically, should the AVAudioSession be activated at any time before graph setup and/or starting the graph, or is it best to activate it last? Are there any related calls that do not work without previously activating the audio session?
Here are roughly the steps that we are performing on launch with the fix for Inter-App Audio launching (previously item 8 was at position 2):
1. Set audio session category
2. Set audio session preferred sample rate
3. Set audio session preferred IO buffer duration
4. Create audio graph
5. Initialize audio graph
6. Start audio graph
7. Publish Inter-App Audio node
8. Activate audio session
Does that look ok? Any input would be appreciated.
Thanks!
Jan
_______________________________________________
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