Re: [LAD] New kid on the block

From: David Robillard <d@email-addr-hidden>
Date: Thu Apr 10 2014 - 21:10:23 EEST

On Wed, 2014-04-02 at 20:47 +0100, Will Godfrey wrote:
[...]
> Also - and I don't know if this is actually a realistic situation - how would I
> handle an all alsa setup? Would there be anything preventing me just linking to
> the ring buffer itself?

It's just a ringbuffer, little thing. If you're concerned about a
dependency you can just copy the Jack one or choose from any number of
others floating around the web.

Here's my two, in C and C++ flavours, FWIW:

http://svn.drobilla.net/zix/trunk/zix/ring.h
http://svn.drobilla.net/zix/trunk/zix/ring.c

http://svn.drobilla.net/lad/trunk/raul/raul/RingBuffer.hpp

Last I checked, these, the Jack one, and the one(s) in Ardour are doing
the same things as far as barriers and correctness are concerned. I
can't rigorously claim they are correct, but they seem correctish and
several people have hammered on them with many threads with no
observable error.

There was a test suite / ringbuffer shootout (by Olivier Guilyardi and
subsequently tinkered with by others) called "rbtest", but the
repository seems to have fallen off the face of the Internet and I can't
find it anymore.

Cheers,

-- 
dr
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Fri Apr 11 00:15:01 2014

This archive was generated by hypermail 2.1.8 : Fri Apr 11 2014 - 00:15:01 EEST