• 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: Latency when starting audio recording stack?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Latency when starting audio recording stack? (From: Shaun Guth <email@hidden>)

  • Prev by Date: Latency when starting audio recording stack?
  • Next by Date: Creating MIDI Network Session Programmatically
  • Previous by thread: Latency when starting audio recording stack?
  • Next by thread: iPhone microphone level metering using kAudioUnitType_Mixer?
  • Index(es):
    • Date
    • Thread