Re: Latency when starting audio recording stack?
Re: Latency when starting audio recording stack?
- Subject: Re: Latency when starting audio recording stack?
- From: Aran Mulholland <email@hidden>
- Date: Mon, 10 Jan 2011 14:19:58 +1100
I have had the same issue with initialisation on the iPhone etc. I
*solved* this by starting before I need to and filling the buffer with
zero's if nothing is playing and not writing anything to a file if
nothing is recording.
Aran
On Mon, Jan 10, 2011 at 2:13 PM, Shaun Guth <email@hidden> wrote:
> Hello,
> I'm writing an iPhone application wherein the user can click a button to
> start recording, and I would like recording to start near-immediately after
> button press; however, I am having trouble with a consistent latency of
> 600-800ms on the first press of the button. (This is on an iPhone 3G, iOS
> 4.2),
> Subsequent button presses result in only a ~20ms delay, which is great;
> however, if I let the phone idle for a minute or two, then press the button
> again, I get the same extended delay.
> I narrowed it down to my call to AudioOutputUnitStart (when using audio
> units) or AudioQueueStart (using queue services).
> To me, this feels like it could be related to the hardware powering up/down
> as needed -- is that the case?
> If so, any suggestions on a workaround? I was considering leaving the
> recording running continuously, but only rendering frames as needed;
> however, I don't know what the CPU/Battery implications of that are yet.
> Thanks,
> -- Shaun
> _______________________________________________
> 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
>
_______________________________________________
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