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-requ...@lists.iem.at > > <mailto:pd-list-requ...@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= > > > > > -- _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list