Re: achieving very low latency
Re: achieving very low latency
- Subject: Re: achieving very low latency
- From: Daphne Ippolito <email@hidden>
- Date: Wed, 04 Jul 2012 11:42:57 -0400
In the experiment, a physical pushbutton is pressed (the old system used a National Instruments card to record this; I am using an Arduino) that plays a sound. I am referring to latency as the time between when the physical button is pressed and when the sound outputs from the audio jack. I have been measuring this with an oscilloscope.
With Core Audio, I have not been able to get this time gap lower than 30 ms. I have tested the Arduino independently and it is not contributing more than 1 ms of delay.
This is my first time programming with audio, so I am still a bit unclear on how it works. I've been told that I can't have more than 10 ms delay between when the pushbutton is pressed and when the sound leaves the speakers, and preferably less than 1 ms.
Any advice on how I can accomplish this?
Thanks a lot,
Daphne
On Wed, Jul 4, 2012 at 11:09 AM, Paul Davis
<email@hidden> wrote:
On Wed, Jul 4, 2012 at 9:49 AM, Daphne Ippolito
<email@hidden> wrote:
Hello,I am writing software for a psychology lab that needs to play sounds with sub-millisecond latency for one of its experiments. The original software the lab used runs on OS 8/9 and makes use of the old SndManager system. It loads all sounds into memory at the beginning of the experiment, and is later able to start the sounds with sub-millisecond latency. I have not been able to replicate with Core Audio the low-latency levels achieved with the old system. Is it possible to play sounds with sub-millisecond or even <5-10 ms latency in OS X? Is the "load all sounds into memory" approach still a good one?
i think you're confusing a number of different meanings of the word "latency". you should be a lot more precise about the performance/behaviour characteristics that you are looking for.
_______________________________________________
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