View Single Post
Old 01-07-2019, 10:10 AM   #21
Human being with feelings
Join Date: Apr 2018
Posts: 293

Originally Posted by Xenakios View Post
There isn't any significant difference between "live" and "offline" usage. In both cases the host gives you audio buffers to process. The plugin should not assume anything about the contents of those buffers or how often the buffers are given to be processed.

Some hosts may be running the plugins all the time when used "live", possibly giving the plugins silent audio buffers if a live hardware input isn't connected or the playback transport is not running, but not all hosts will do that. (They may just stop calling the plugin's audio processing.) In any case, the plugin should not really care about that at all.

If your algorithm can't tolerate zeros as its initial input, it is either flawed or you will have to figure out some other way to initialize it. And it's impossible for an outsider to say what that other way should be, since it's an algorithm written or chosen by you.
An audio file could, in reality, have non-zero audio data present on it's very first sample. How would a plugin that uses a FIR filter produce a valid output on that very first sample if its array is initialized to all zeroes?

"Off line" processing has no "settling time" before the audio arrives - "on line" processing usually does. I don't see how they could possibly be initialized the same way.

Last edited by Nonlinear; 01-07-2019 at 10:20 AM.
Nonlinear is offline   Reply With Quote