[Paul Davis]
>On Tue, Dec 20, 2011 at 8:24 AM, Tim Goetze wrote:
Yes, and fortunately commonly occurring events from MIDI-sourced=20
tracks are relatively sparse. If these events are only enqueued in=20
bursts a handful of times per second the sorting overhead is quite=20
small, and reduced further if sorting only occurs when the consuming=20
thread detects write pointer movement on the FIFO. (Since there's a=20
certain contention for the track lock between recording, playback and=20
editing, hard realtime access to the track contents seems all but out=20
of the question anyway.)
>> =A0Multiple
There'll be at least the realtime MIDI input thread, and then there=20
are events generated from audio streams that have to be dispatched in=20
a lockfree code path. (Of course, none of this is much of a concern=20
if you do all your realtime work in a jack audio processing callback.)
Tim
LINUX® is a registered trademark of Linus Torvalds in the USA and other countries.
Linuxaudio.org logo copyright Thorsten Wilms © 2006.
Hosting provided by the Virginia Tech Department of Music and DISIS.