[linux-audio-dev] LADSPA plugin - non realtime use of buffers

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [linux-audio-dev] LADSPA plugin - non realtime use of buffers
From: Nathan Stewart (nps_AT_mebtel.net)
Date: Thu Aug 15 2002 - 05:13:54 EEST


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


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Thu Aug 15 2002 - 05:13:07 EEST