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

From: Olivier Guilyardi <ml@email-addr-hidden>
Date: Sun Oct 19 2008 - 14:03:23 EEST

Ken Restivo a écrit :
> On Fri, Oct 17, 2008 at 04:39:25PM +0200, Olivier Guilyardi wrote:
>>
>> svn co http://svn.samalyse.com/misc/rbtest
>> cd rbtest
>> make test
>>
> cc -Wall -I. -I./jack -lpthread -o test-int-array-jack \
> test-int-array.c jack/ringbuffer.c
> test-int-array.c: In function ‘main’:
> test-int-array.c:113: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’
> cc -Wall -I. -I./portaudio -lpthread -o test-int-array-portaudio \
> test-int-array.c portaudio/ringbuffer.c portaudio/pa_ringbuffer.c
> test-int-array.c: In function ‘main’:
> test-int-array.c:113: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’
> cc -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
> test-int-array.c: In function ‘main’:
> test-int-array.c:113: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’
> cc -Wall -I. -I./jack -lpthread -o test-int-array-jack-fix1 \
> test-int-array.c jack/ringbuffer-fix1.c
> test-int-array.c: In function ‘main’:
> test-int-array.c:113: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’

I only got these warnings on Mac OS X, I suppose it depends on the gcc and/or
libc version. That did not cause any segfault in my case though. I've fixed it
anyway.

> ./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
> ./alltests.sh: line 9: 7742 Segmentation fault ./test-int-array-jack $BUFFER_SIZE
>
> Info on the system this was run on, is here:
> http://restivo.nfshost.com/projects/asus/system-details/

Please update rbtest to r309.

Thanks,

-- 
   Olivier Guilyardi / Samalyse
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
Received on Sun Oct 19 16:15:02 2008

This archive was generated by hypermail 2.1.8 : Sun Oct 19 2008 - 16:15:02 EEST