remove reference "const int32_t&" -> const int32_t"
[ardour.git] / libs / ardour / ardour / ladspa_plugin.h
index a3b99575fee99c16d6c5c49701f30784233e3f6b..dbb635fd91132fe3e80a1e36501a090c5b9d6ea5 100644 (file)
@@ -28,7 +28,6 @@
 
 #include "pbd/stateful.h"
 
-#include <jack/types.h>
 #include "ardour/ladspa.h"
 #include "ardour/plugin.h"
 
@@ -50,7 +49,7 @@ class LIBARDOUR_API LadspaPlugin : public ARDOUR::Plugin
        const char* name() const            { return _descriptor->Name; }
        const char* maker() const           { return _descriptor->Maker; }
        uint32_t    parameter_count() const { return _descriptor->PortCount; }
-       float       default_value (uint32_t port);
+       float       default_value (uint32_t port) { return _default_value (port); }
        framecnt_t  signal_latency() const;
        void        set_parameter (uint32_t port, float val);
        float       get_parameter (uint32_t port) const;
@@ -84,6 +83,7 @@ class LIBARDOUR_API LadspaPlugin : public ARDOUR::Plugin
        int set_block_size (pframes_t /*nframes*/) { return 0; }
 
        int connect_and_run (BufferSet& bufs,
+                       framepos_t start, framepos_t end, double speed,
                        ChanMapping in, ChanMapping out,
                        pframes_t nframes, framecnt_t offset);
 
@@ -97,7 +97,7 @@ class LIBARDOUR_API LadspaPlugin : public ARDOUR::Plugin
        bool parameter_is_output(uint32_t) const;
        bool parameter_is_toggled(uint32_t) const;
 
-       boost::shared_ptr<Plugin::ScalePoints>
+       boost::shared_ptr<ScalePoints>
        get_scale_points(uint32_t port_index) const;
 
        int set_state (const XMLNode&, int version);
@@ -106,8 +106,6 @@ class LIBARDOUR_API LadspaPlugin : public ARDOUR::Plugin
 
        bool has_editor() const { return false; }
 
-       int require_output_streams (uint32_t);
-
        /* LADSPA extras */
 
        LADSPA_Properties           properties() const                { return _descriptor->Properties; }
@@ -122,6 +120,7 @@ class LIBARDOUR_API LadspaPlugin : public ARDOUR::Plugin
        void connect_port (uint32_t port, float *ptr) { _descriptor->connect_port (_handle, port, ptr); }
 
   private:
+       float                    _default_value (uint32_t port) const;
        std::string              _module_path;
        Glib::Module*            _module;
        const LADSPA_Descriptor* _descriptor;
@@ -153,6 +152,7 @@ class LIBARDOUR_API LadspaPluginInfo : public PluginInfo {
        ~LadspaPluginInfo () { };
 
        PluginPtr load (Session& session);
+       std::vector<Plugin::PresetRecord> get_presets (bool user_only) const;
 };
 
 typedef boost::shared_ptr<LadspaPluginInfo> LadspaPluginInfoPtr;