Re: [LAD] timing the processing of queues between engine and ui threads?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Iain Duncan <iainduncanlists@...>
Cc: <linux-audio-dev@...>
Date: Friday, November 4, 2011 - 12:42 am

On Thu, 2011-11-03 at 16:29 -0700, Iain Duncan wrote:

Time stamp the events as they come in (e.g. with jack_frame_time()), and
aim to execute them at (time + block_size_in_frames). This avoids
jitter, and keeps the rate that you execute them bounded by the rate
they come in.

You'll also probably want some kind of hard upper limit to ensure
realtimeyness when things get crazy. That truly is a Magical Mystery
Number and will depend greatly on how expensive your events are. Make
one up.

-dr

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [LAD] timing the processing of queues between engine and..., David Robillard, (Fri Nov 4, 12:42 am)
Re: [LAD] timing the processing of queues between engine and..., Gabriel M. Beddingfield, (Mon Nov 7, 2:01 am)