I wrote a little truncating gate as a Ladspa plugin for my own use that
is designed to function somewhat like ecasound's -gc: gate, but with the
ability to reopen. It's quite simple, as I designed it to be fed from an
effects type noise gate plugin, so it only looks for a string of zero's
in a row to close the gate.

That part seems to be working. What isn't working - is that my run
function gets called with a buffer length of 1024 samples. Say my gate
detects that 120 samples are a contiguous string of nulls, and only
passes 904 samples. Well, the buffer didn't get any smaller, and the
remainder are left uninitialized (not that I think I should care).

How can I truncate the length of the current output buffer without
closing the whole data stream? Is this what I want to do?

Regards
Nate




Reply via email to