[PD-dev] Variable amount of signal inlets and outlets

Roman Haefeli reduzent at gmail.com
Sat May 23 15:11:46 CEST 2020


On Sat, 2020-05-23 at 12:57 +0200, Christof Ressi wrote:
> One word of warning about externals with multiple signal
> inputs/outputs (quoting from 
> https://github.com/pure-data/externals-howto#signal-classes):
> "Optimisation of the DSP-tree tries to avoid unnecessary copy-
> operations. Therefore it is possible, that in- and out-signal are
> located at the same address in the memory. In this case, the
> programmer has to be careful not to write into the out-signal before
> having read the in-signal to avoid overwriting data that is not yet
> saved."
> This is still a bit vague, though, I would rephrase it like this:
> "In this case, the programmer has to be careful not to write into
> *any* out-signal before having read *all* in-signals"

Sounds to me like:

 "In order to be absolutely sure to avoid unnecessary copy operations,
you must perform copy operations."

I'm no C programmer, but I don't see how you can read *all* data before
writing *without* copying it around.

Roman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20200523/13d8e9d0/attachment.sig>


More information about the Pd-dev mailing list