13
0

fix LV2Plugin::requires_fixed_sized_buffers()

ARDOUR::Plugin() does not inherit from ARDOUR::Processor(),
the virtual function was never called.
This commit is contained in:
Robin Gareus 2016-02-23 22:17:48 +01:00
parent 28c9583ba6
commit 70222e8133
2 changed files with 2 additions and 1 deletions

View File

@ -84,6 +84,7 @@ class LIBARDOUR_API Plugin : public PBD::StatefulDestructible, public Latent
virtual void flush () { deactivate(); activate(); }
virtual int set_block_size (pframes_t nframes) = 0;
virtual bool requires_fixed_sized_buffers() const { return false; }
virtual int connect_and_run (BufferSet& bufs,
ChanMapping in, ChanMapping out,

View File

@ -560,7 +560,7 @@ PluginInsert::automation_run (BufferSet& bufs, framepos_t start, pframes_t nfram
return;
}
if (!find_next_event (now, end, next_event) || requires_fixed_sized_buffers()) {
if (!find_next_event (now, end, next_event) || _plugins.front()->requires_fixed_sized_buffers()) {
/* no events have a time within the relevant range */