So for synthesizers we use a tail off parameter to turn of the voice for the synth in order not to take up resources.
What is the equivalent for audio effects ?
So for synthesizers we use a tail off parameter to turn of the voice for the synth in order not to take up resources.
What is the equivalent for audio effects ?
some hosts send empty buffers to say that processing stops. you can catch this with numSamples == 0 and return with it
Oh thanks I will give it a try.
set accordingly as well AudioProcessor ::getTailLengthSeconds
Some hosts will do this for you. Logic, for example, will stop calling processBlock if there is no audio or the transport is stopped (which makes it difficult to detect that this has happened, since you can’t query the transport state except from processBlock). Cubase has a setting to not call the processing function if there is no audio in its Preferences. For us, it’s a pain, because we need to know when the transport stops.
but cubase does the numSamples == 0 thing, so it should be fine
Ableton unfortunately does not do this I think. Should I check the buffer for 0.0 up to num of samples if so process?