Am 14.06.2008 um 18:37 schrieb PSPunch:
So, I've made a cache to copy the original signal to before processing.Because the block size may change anytime, I am malloc & freeing a cachethe size of the block on each DSP cycle. I hear that malloc is a "relatively" expensive task.Is it bad practice to run this each cycle, or is a kilobyte or two not abid deal?
That's definitely bad practice.Instead of that you can do the allocation in the "dsp" callback, that's where you add your dsp processing to the signal chain. This callback will be called anytime when either the block size or sample rate changes or when the signal graph is rebuilt.
gr~~~
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
