Re: achieving very low latency
Re: achieving very low latency
- Subject: Re: achieving very low latency
- From: Jorge Chamorro <email@hidden>
- Date: Fri, 06 Jul 2012 13:44:20 +0200
On 05/07/2012, at 16:08, Hari Karam Singh wrote:
>
> As far the CoreAudio code goes, the trick is as you said, to preload at least part of the audio file, and then as also suggested, leave the audio graph running, feeding in silence until the sound is triggered at which point you start feeding the audio file. If you don’t wish to load the entire sound into memory, you need to feed the audio into the render callback via a ring buffer which you monitor from a separate thread and refill from disk when it depletes below a certain threshold.
>
Hi,
That's what I'm doing here <https://github.com/xk/node-sound> and the test <https://github.com/xk/node-sound/blob/master/tests/test00.js> shows that latency is still between 25 and 30 ms, so in my experience that won't cut it.
--
Jorge.
_______________________________________________
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