• 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: achieving very low latency
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: achieving very low latency


  • Subject: Re: achieving very low latency
  • From: Paul Davis <email@hidden>
  • Date: Wed, 04 Jul 2012 22:42:20 -0400



On Wed, Jul 4, 2012 at 2:28 PM, Daphne Ippolito <email@hidden> wrote:
I've tried buffers of 32 bytes, and I still get ~30 ms of delay. I
don't think I can go much lower than that? I am using an only slightly
revised version of the sample code from the Learning Core Audio book.

you need to use HALLab (IIRC) to adjust the size of the device driver "safety buffer". this may not even be possible on later versions of OS X. the safety buffer is not controlled by your application, it exists to deal with possible errors in the DLL/PLL that is used within coreaudio to estimate the current buffer position being used by the h/w.

as a general comment, the lowest measured latencies for audio come from a very well tuned linux system, which can go quite a bit lower than OS X or windows. but even there, sub-millisecond is probably impossible. 1-3 is doable but is very, very, very dependent on hardware and a carefully tuned software stack.
 
 _______________________________________________
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: achieving very low latency
      • From: Peter April <email@hidden>
References: 
 >achieving very low latency (From: Daphne Ippolito <email@hidden>)
 >Re: achieving very low latency (From: Paul Davis <email@hidden>)
 >Re: achieving very low latency (From: Daphne Ippolito <email@hidden>)
 >Re: achieving very low latency (From: Robert Martin <email@hidden>)
 >Re: achieving very low latency (From: Daphne Ippolito <email@hidden>)

  • Prev by Date: Re: achieving very low latency
  • Next by Date: Re: achieving very low latency
  • Previous by thread: Re: achieving very low latency
  • Next by thread: Re: achieving very low latency
  • Index(es):
    • Date
    • Thread