fix LV2Plugin::requires_fixed_sized_buffers()
authorRobin Gareus <robin@gareus.org>
Tue, 23 Feb 2016 21:17:48 +0000 (22:17 +0100)
committerRobin Gareus <robin@gareus.org>
Tue, 23 Feb 2016 21:22:19 +0000 (22:22 +0100)
ARDOUR::Plugin() does not inherit from ARDOUR::Processor(),
the virtual function was never called.

libs/ardour/ardour/plugin.h
libs/ardour/plugin_insert.cc

index 44090c3aeaacaca3307904046948e99724e5aa83..0ce5522c7c7eb5f6c910f41a2391b91589342b25 100644 (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,
index a041069cea60a43a7b415092d53462f338031472..30fe1c005d2b1b00cd567db6db6a28a0ac7c09cf 100644 (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 */