[LAD] jack ringbuffer question

lieven moors lievenmoors at gmail.com
Wed Dec 2 03:28:21 UTC 2009


Paul Davis wrote:
> On Tue, Dec 1, 2009 at 9:51 PM, lieven moors <lievenmoors at gmail.com> wrote:
>
>   
>> I want to repeat the same Arp, until there is an update to the text file.
>> One arp is allready
>> loaded in each ringbuffer in main(). When the file is modified, a second one
>> is added, and
>> process skips to the second one. Since I have only space for two arps in the
>> buffer, there
>> should always be exactly one which is readable. I know it is a bit weird,
>> but it seems to
>> work, apart from the problem I described.
>>     
>
> sounds as if you might want to look into atomic pointer and/or integer
> exchange instead, to get lock-free double buffering.
>
> ringbuffers are generally for passing streaming data/events.
>
>   
I have no idea what that means, but I'll look into this.
Thanks for the tip.




More information about the Linux-audio-dev mailing list