VST3 processBlock with empty buffer


It appears that the VST3 wrapper (in Cubase) sometimes calls processBlock with an empty buffer (numSamples == 0). Plugins code must take that into account. One of my plugins had an issue for that reason.

Wouldn't it be a good idea to warn developers about this in the documentation or even better, filter this special case in the wrapper and not call processBlock when there is no data to process ?

Thanks, I'll add a note to the docs.

The processBlock still needs to be called though, as it could be that the plugin wants to do something involving midi even if there's no audio going on.

Yes I forgot the MIDI plugins...