[PD] libpd: How to buffer processFloat/processDouble calls?

Matti Viljamaa mviljamaa at kapsi.fi
Thu Feb 18 04:56:55 CET 2016


How should processFloat/processDouble calls be buffered. If I’m getting input (and require output) at some nFrames chunks and libpd’s blocksize is 64, then how should I handle it so that input/output occurs in sync and without gaps.

I see there’s a ring buffer implementation in the lib:

https://github.com/libpd/libpd/blob/master/libpd_wrapper/util/ringbuffer.c <https://github.com/libpd/libpd/blob/master/libpd_wrapper/util/ringbuffer.c>

Now how to use that for example for buffering correctly?

—

I’m using the C++ headers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20160218/6c94db36/attachment.html>


More information about the Pd-list mailing list