29 #include <glibmm/module.h>
50 const char*
label()
const {
return _descriptor->Label; }
51 const char*
name()
const {
return _descriptor->Name; }
52 const char*
maker()
const {
return _descriptor->Maker; }
63 if (!_was_activated && _descriptor->activate)
64 _descriptor->activate (_handle);
66 _was_activated =
true;
70 if (_was_activated && _descriptor->deactivate)
71 _descriptor->deactivate (_handle);
73 _was_activated =
false;
80 if (_descriptor->cleanup)
81 _descriptor->cleanup (_handle);
100 std::shared_ptr<ScalePoints>
112 uint32_t
index()
const {
return _index; }
113 const char *
copyright()
const {
return _descriptor->Copyright; }
116 const char *
const *
port_names()
const {
return _descriptor->PortNames; }
119 void run_adding (uint32_t nsamples) { _descriptor->run_adding (_handle, nsamples); }
120 void connect_port (uint32_t port,
float *ptr) { _descriptor->connect_port (_handle, port, ptr); }
157 bool is_effect ()
const {
return false; }
158 bool is_utility ()
const {
return true; }
162 std::vector<Plugin::PresetRecord>
get_presets (
bool user_only)
const;
std::vector< Plugin::PresetRecord > get_presets(bool user_only) const
bool is_instrument() const
PluginPtr load(Session &session)
uint32_t parameter_count() const
int set_block_size(pframes_t)
bool load_preset(PresetRecord)
int connect_and_run(BufferSet &bufs, samplepos_t start, samplepos_t end, double speed, ChanMapping const &in, ChanMapping const &out, pframes_t nframes, samplecnt_t offset)
std::string state_node_name() const
int get_parameter_descriptor(uint32_t which, ParameterDescriptor &) const
LADSPA_Properties properties() const
void latency_compute_run()
void do_remove_preset(std::string name)
bool parameter_is_toggled(uint32_t) const
const LADSPA_Descriptor * _descriptor
LadspaPlugin(std::string module_path, ARDOUR::AudioEngine &, ARDOUR::Session &, uint32_t index, samplecnt_t sample_rate)
void run_adding(uint32_t nsamples)
int set_state(const XMLNode &, int version)
const char * copyright() const
std::string preset_source() const
std::set< Evoral::Parameter > automatable() const
LADSPA_Data * _latency_control_port
void init(std::string module_path, uint32_t index, samplecnt_t rate)
float default_value(uint32_t port)
float get_parameter(uint32_t port) const
std::string unique_id() const
samplecnt_t plugin_latency() const
void add_state(XMLNode *) const
void connect_port(uint32_t port, float *ptr)
void set_gain(float gain)
void set_parameter(uint32_t port, float val, sampleoffset_t)
float _default_value(uint32_t port) const
LADSPA_Data * _shadow_data
std::string describe_parameter(Evoral::Parameter)
std::string do_save_preset(std::string name)
const char * name() const
std::shared_ptr< ScalePoints > get_scale_points(uint32_t port_index) const
bool parameter_is_audio(uint32_t) const
LADSPA_PortDescriptor port_descriptor(uint32_t i) const
uint32_t nth_parameter(uint32_t port, bool &ok) const
void run_in_place(pframes_t nsamples)
bool parameter_is_output(uint32_t) const
const char * maker() const
const char * label() const
int set_state_2X(const XMLNode &, int version)
const LADSPA_PortRangeHint * port_range_hints() const
const char *const * port_names() const
bool parameter_is_control(uint32_t) const
bool parameter_is_input(uint32_t) const
LadspaPlugin(const LadspaPlugin &)
LADSPA_Data * _control_data
GtkImageIconNameData name
int LADSPA_PortDescriptor
void session(lua_State *L)
PBD::PropertyDescriptor< gain_t > gain
PBD::PropertyDescriptor< timepos_t > start
std::shared_ptr< LadspaPluginInfo > LadspaPluginInfoPtr
std::shared_ptr< Plugin > PluginPtr
Temporal::samplecnt_t samplecnt_t
Temporal::sampleoffset_t sampleoffset_t
Temporal::samplepos_t samplepos_t