[PD] JACK affects UDP rate
Dan Wilcox
danomatika at gmail.com
Mon Jul 26 20:49:11 CEST 2021
Peter’s ringbuffer.c works with arbitrary input and output lengths. I think the 256 sizing is required when allocating.
If s_audio_paring.c is generalized already, maybe it can become s_audio_ring.c and used in the other audio backends, as suggested by Christof.
enohp ym morf tnes
-----------
Dan Wilcox
danomatika.com
robotcowboy.com
> On Jul 26, 2021, at 6:53 PM, Miller Puckette <msp at ucsd.edu> wrote:
>
> There's also the "ring buffer" stuff in s_audio_paring.c - it's quite general
> and well written. Byte stream oriented.
>
> cheers
> M
>
>> On Mon, Jul 26, 2021 at 12:46:43PM +0200, Dan Wilcox wrote:
>> (Sending again with correct subject line. :P)
>>
>> Note, there is Peter's C atomics ringbuffer.c implementation from libpd now in the Pd sources. It's limited to lengths of a multiple of 256 bytes I believe but easy to use.
>>
>> I have used it successfully in the iOS Audio Unit to handle differing input and output buffer sizes due to sample rate conversion outside libpd.
>>
>>>> On Jul 25, 2021, at 12:00 PM, pd-list-request at lists.iem.at <mailto:pd-list-request at lists.iem.at> wrote:
>>>
>>> If my analysis is correct (if not, please let me know!), I think the
>>> Jack backend should really adapt the lock-free FIFO from the Portaudio
>>> backend.
>>
>> --------
>> Dan Wilcox
>> @danomatika <https://urldefense.proofpoint.com/v2/url?u=http-3A__twitter.com_danomatika&d=DwIFAg&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=rriLRXOzSyU6_Va6iL0QOqEY2MzSmUbkgcQaiciHxmU&s=XdVTS8KxGKUC8BBaTGN5FuyWRAGx6BV_HkFUpUVzLKs&e= >
>> danomatika.com <https://urldefense.proofpoint.com/v2/url?u=http-3A__danomatika.com_&d=DwIFAg&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=rriLRXOzSyU6_Va6iL0QOqEY2MzSmUbkgcQaiciHxmU&s=BWViQV6On73sawahhwOPwM4xFsU_-Qwes31-gU5i5S0&e= >
>> robotcowboy.com <https://urldefense.proofpoint.com/v2/url?u=http-3A__robotcowboy.com_&d=DwIFAg&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=rriLRXOzSyU6_Va6iL0QOqEY2MzSmUbkgcQaiciHxmU&s=A7cKM5FSsSTvYlOaAfhIRU0T1BmvwOUX3ASGd87zmn8&e= >
>>
>>
>>
>
> --
More information about the Pd-list
mailing list