Hello!
I was watching this very interesting talk:
The talk descbribes some things to look out for when doing audio dsp. Things that could risk having the audio thread have arbitrarily long processing time (potentially resulting in audio drop-outs).
He mentions that using new and delete should be avoided as they internally use locks (as I understood it...), and hence can introduce unexpected wait in the running code.
But what about memcpy? Can I safely use memcpy inside the render function? I want to prepare a float array for a processing function by copying.
Also, at the moment I use new and deletein some of my effect classes' constructors and destructors. This is to instantiate ringbuffers where I don't know the size beforehand. I'm only calling the constructors outside render. Is that ok, or is it better to always define a big enough array size in the declaration? If so, why?
Any thoughts and know how would be greatly appreciated!