Re: iOS4 questions about Core Audio
Re: iOS4 questions about Core Audio
- Subject: Re: iOS4 questions about Core Audio
- From: John Michael Zorko <email@hidden>
- Date: Wed, 23 Jun 2010 15:02:19 -0700
Kyle, Jens et al,
I fixed it! What I did was instantiate an AVAudioPlayer and have it play a wav of silence (best imagined as a device in a Maxwell Smart movie) right before I shut down stream A, and stop it right after stream B's audio queue is set up and started. This way there is always _something_ playing audio in the background, so iOS4 doesn't suspend me ;-)
Result: my app continues in the background, even between streams :-)
Regards,
John
On Jun 23, 2010, at 2:18 PM, Kyle Sluder wrote:
> On Wed, Jun 23, 2010 at 2:06 PM, John Michael Zorko <email@hidden> wrote:
>> 1. Does this mean my app will be suspended at some point after I call
>> AudioQueueStop()? I call this when the stream is finished or an error
>> occurs, but the app still has to try to connect to the next stream, even
>> while backgrounded.
>
> Do you need to stop the audio queue? I would think you would only ever
> have one audio queue, and just fill it with silence while you're
> waiting for data from the next stream.
>
> --Kyle Sluder
_______________________________________________
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