Re: [LAU] Simple, easy multithreaded circular buffer library for Linux?

From: Paul Davis <paul@email-addr-hidden>
Date: Tue Oct 14 2008 - 10:24:44 EEST

On Mon, 2008-10-13 at 22:44 -0700, Ken Restivo wrote:

> By the way, I know that JACK has a very nice event buffer which is insanely easy to use (and I have), and makes multithreading almost transparent, but this isn't a JACK app.

The JACK header jack_ringbuffer.h has no dependencies on any other JACK
headers. You can copy it and reuse it. If you want to rename the data
types, then sed -e '/jack/ken/g' < jack_ringbuffer.h > ken_ringbuffer.h
should pretty much take care of it.

Keep in mind that the ringbuffer model is limited to a
single-reader/single-writer.

--p

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
Received on Tue Oct 14 12:15:03 2008

This archive was generated by hypermail 2.1.8 : Tue Oct 14 2008 - 12:15:03 EEST