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

Joern Nettingsmeier nettings at folkwang-hochschule.de
Fri Oct 17 11:42:29 EDT 2008


Olivier Guilyardi wrote:


> Here's how to run the test:
> 
> svn co http://svn.samalyse.com/misc/rbtest
> cd rbtest
> make test

on a pentium-m 32bit notebook:

nettings at hoppetosse:/local/rbtest> make test
gcc -Wall -I. -I./jack -lpthread -o test-int-array-jack \
                test-int-array.c jack/ringbuffer.c
gcc -Wall -I. -I./portaudio -lpthread -o test-int-array-portaudio \
                test-int-array.c portaudio/ringbuffer.c
portaudio/pa_ringbuffer.c
gcc -Wall -I. -I./portaudio -lpthread -o
test-int-array-portaudio-nobarrier \
                -DNO_MEMORY_BARRIER \
                test-int-array.c portaudio/ringbuffer.c
portaudio/pa_ringbuffer.c
./alltests.sh
Starting ringbuffer tests (buffer size: 512)

=== Jack ringbuffer test ===
starting ringbuffer stress test (2 minutes max)
buffer size (bytes): 512
array size (bytes): 256
reader started on cpu 0
writer started on cpu: 0
Success

=== Portaudio ringbuffer test ===
starting ringbuffer stress test (2 minutes max)
buffer size (bytes): 512
array size (bytes): 256
reader started on cpu 0
writer started on cpu: 0
Success

=== Portaudio ringbuffer test (without memory barriers) ===
starting ringbuffer stress test (2 minutes max)
buffer size (bytes): 512
array size (bytes): 256
reader started on cpu 0
writer started on cpu: 0
Success
nettings at hoppetosse:/local/rbtest>

-- 
jörn nettingsmeier

home://germany/45128 essen/lortzingstr. 11/
http://spunk.dnsalias.org
phone://+49/201/491621

Kurt is up in Heaven now.



More information about the Linux-audio-user mailing list