ardour
|
#include <ladspa_plugin.h>
Public Member Functions | |
LadspaPlugin (std::string module_path, ARDOUR::AudioEngine &, ARDOUR::Session &, uint32_t index, framecnt_t sample_rate) | |
LadspaPlugin (const LadspaPlugin &) | |
~LadspaPlugin () | |
std::string | unique_id () const |
const char * | label () const |
const char * | name () const |
const char * | maker () const |
uint32_t | parameter_count () const |
float | default_value (uint32_t port) |
framecnt_t | signal_latency () const |
void | set_parameter (uint32_t port, float val) |
float | get_parameter (uint32_t port) const |
int | get_parameter_descriptor (uint32_t which, ParameterDescriptor &) const |
uint32_t | nth_parameter (uint32_t port, bool &ok) const |
std::set< Evoral::Parameter > | automatable () const |
void | activate () |
void | deactivate () |
void | cleanup () |
int | set_block_size (pframes_t) |
int | connect_and_run (BufferSet &bufs, ChanMapping in, ChanMapping out, pframes_t nframes, framecnt_t offset) |
std::string | describe_parameter (Evoral::Parameter) |
std::string | state_node_name () const |
void | print_parameter (uint32_t, char *, uint32_t len) const |
bool | parameter_is_audio (uint32_t) const |
bool | parameter_is_control (uint32_t) const |
bool | parameter_is_input (uint32_t) const |
bool | parameter_is_output (uint32_t) const |
bool | parameter_is_toggled (uint32_t) const |
boost::shared_ptr< ScalePoints > | get_scale_points (uint32_t port_index) const |
int | set_state (const XMLNode &, int version) |
bool | load_preset (PresetRecord) |
bool | has_editor () const |
int | require_output_streams (uint32_t) |
LADSPA_Properties | properties () const |
uint32_t | index () const |
const char * | copyright () const |
LADSPA_PortDescriptor | port_descriptor (uint32_t i) const |
const LADSPA_PortRangeHint * | port_range_hints () const |
const char *const * | port_names () const |
void | set_gain (float gain) |
void | run_adding (uint32_t nsamples) |
void | connect_port (uint32_t port, float *ptr) |
Public Member Functions inherited from ARDOUR::Plugin | |
Plugin (ARDOUR::AudioEngine &, ARDOUR::Session &) | |
Plugin (const Plugin &) | |
virtual | ~Plugin () |
XMLNode & | get_state () |
virtual void | set_insert_id (PBD::ID id) |
virtual std::string | get_docs () const |
virtual std::string | get_parameter_docs (uint32_t) const |
virtual void | flush () |
void | realtime_handle_transport_stopped () |
void | realtime_locate () |
void | monitoring_changed () |
PresetRecord | save_preset (std::string) |
void | remove_preset (std::string) |
void | clear_preset () |
const PresetRecord * | preset_by_label (const std::string &) |
const PresetRecord * | preset_by_uri (const std::string &) |
std::vector< PresetRecord > | get_presets () |
virtual bool | presets_are_MIDI_programs () const |
virtual bool | current_preset_uses_general_midi () const |
PresetRecord | last_preset () const |
bool | parameter_changed_since_last_preset () const |
virtual int | first_user_preset_index () const |
virtual bool | configure_io (ChanCount, ChanCount) |
virtual bool | can_support_io_configuration (const ChanCount &, ChanCount &) |
virtual ChanCount | output_streams () const |
virtual ChanCount | input_streams () const |
PluginInfoPtr | get_info () const |
virtual void | set_info (const PluginInfoPtr inf) |
ARDOUR::AudioEngine & | engine () const |
ARDOUR::Session & | session () const |
void | set_cycles (uint32_t c) |
cycles_t | cycles () const |
virtual const PropertyDescriptors & | get_supported_properties () const |
virtual const ParameterDescriptor & | get_property_descriptor (uint32_t id) const |
virtual void | set_property (uint32_t key, const Variant &value) |
virtual void | announce_property_values () |
Public Member Functions inherited from PBD::Stateful | |
Stateful () | |
virtual | ~Stateful () |
virtual bool | apply_changes (PropertyBase const &) |
PropertyChange | apply_changes (PropertyList const &) |
const OwnedPropertyList & | properties () const |
void | add_property (PropertyBase &s) |
void | add_extra_xml (XMLNode &) |
XMLNode * | extra_xml (const std::string &str, bool add_if_missing=false) |
void | save_extra_xml (const XMLNode &) |
const PBD::ID & | id () const |
bool | set_id (const XMLNode &) |
void | set_id (const std::string &) |
void | reset_id () |
void | clear_changes () |
virtual void | clear_owned_changes () |
PropertyList * | get_changes_as_properties (Command *) const |
virtual void | rdiff (std::vector< Command * > &) const |
bool | changed () const |
virtual PropertyList * | property_factory (const XMLNode &) const |
virtual void | suspend_property_changes () |
virtual void | resume_property_changes () |
bool | property_changes_suspended () const |
Public Member Functions inherited from PBD::Destructible | |
Destructible () | |
virtual | ~Destructible () |
void | drop_references () |
Public Member Functions inherited from ARDOUR::Latent | |
Latent () | |
virtual | ~Latent () |
framecnt_t | user_latency () const |
framecnt_t | effective_latency () const |
virtual void | set_user_latency (framecnt_t val) |
Private Member Functions | |
float | _default_value (uint32_t port) const |
void | find_presets () |
void | init (std::string module_path, uint32_t index, framecnt_t rate) |
void | run_in_place (pframes_t nsamples) |
void | latency_compute_run () |
int | set_state_2X (const XMLNode &, int version) |
std::string | do_save_preset (std::string name) |
void | do_remove_preset (std::string name) |
std::string | preset_envvar () const |
std::string | preset_source (std::string) const |
bool | write_preset_file (std::string) |
void | add_state (XMLNode *) const |
Private Attributes | |
std::string | _module_path |
Glib::Module * | _module |
const LADSPA_Descriptor * | _descriptor |
LADSPA_Handle | _handle |
framecnt_t | _sample_rate |
LADSPA_Data * | _control_data |
LADSPA_Data * | _shadow_data |
LADSPA_Data * | _latency_control_port |
uint32_t | _index |
bool | _was_activated |
Additional Inherited Members | |
Public Types inherited from ARDOUR::Plugin | |
typedef std::map< uint32_t, ParameterDescriptor > | PropertyDescriptors |
Public Attributes inherited from ARDOUR::Plugin | |
PBD::Signal0< void > | PresetAdded |
PBD::Signal0< void > | PresetRemoved |
PBD::Signal0< void > | PresetLoaded |
PBD::Signal2< void, uint32_t, float > | ParameterChanged |
PBD::Signal2< void, uint32_t, Variant > | PropertyChanged |
PBD::Signal1< void, uint32_t > | StartTouch |
PBD::Signal1< void, uint32_t > | EndTouch |
Public Attributes inherited from PBD::Stateful | |
PBD::Signal1< void, const PropertyChange & > | PropertyChanged |
Public Attributes inherited from PBD::Destructible | |
PBD::Signal0< void > | Destroyed |
PBD::Signal0< void > | DropReferences |
Static Public Attributes inherited from PBD::Stateful | |
static int | current_state_version = 0 |
static int | loading_state_version = 0 |
Protected Member Functions inherited from PBD::Stateful | |
void | add_instant_xml (XMLNode &, const std::string &directory_path) |
XMLNode * | instant_xml (const std::string &str, const std::string &directory_path) |
void | add_properties (XMLNode &) |
PropertyChange | set_values (XMLNode const &) |
virtual void | post_set (const PropertyChange &) |
virtual void | send_change (const PropertyChange &) |
virtual void | mid_thaw (const PropertyChange &) |
Protected Attributes inherited from ARDOUR::Plugin | |
ARDOUR::AudioEngine & | _engine |
ARDOUR::Session & | _session |
PluginInfoPtr | _info |
uint32_t | _cycles |
std::map< std::string, PresetRecord > | _presets |
Protected Attributes inherited from PBD::Stateful | |
XMLNode * | _extra_xml |
XMLNode * | _instant_xml |
PBD::PropertyChange | _pending_changed |
Glib::Threads::Mutex | _lock |
std::string | _xml_node_name |
name of node to use for this object in XML More... | |
OwnedPropertyList * | _properties |
Protected Attributes inherited from ARDOUR::Latent | |
framecnt_t | _user_latency |
Definition at line 38 of file ladspa_plugin.h.
ARDOUR::LadspaPlugin::LadspaPlugin | ( | std::string | module_path, |
ARDOUR::AudioEngine & | , | ||
ARDOUR::Session & | , | ||
uint32_t | index, | ||
framecnt_t | sample_rate | ||
) |
LadspaPlugin::LadspaPlugin | ( | const LadspaPlugin & | other | ) |
Definition at line 67 of file ladspa_plugin.cc.
LadspaPlugin::~LadspaPlugin | ( | ) |
Definition at line 155 of file ladspa_plugin.cc.
|
private |
Definition at line 176 of file ladspa_plugin.cc.
|
inlinevirtual |
Implements ARDOUR::Plugin.
Definition at line 61 of file ladspa_plugin.h.
|
privatevirtual |
Add state to an existing XMLNode
Implements ARDOUR::Plugin.
Definition at line 350 of file ladspa_plugin.cc.
|
virtual |
Implements ARDOUR::Plugin.
Definition at line 555 of file ladspa_plugin.cc.
|
inline |
Definition at line 75 of file ladspa_plugin.h.
|
virtual |
Reimplemented from ARDOUR::Plugin.
Definition at line 571 of file ladspa_plugin.cc.
|
inline |
Definition at line 121 of file ladspa_plugin.h.
|
inline |
Definition at line 114 of file ladspa_plugin.h.
|
inlinevirtual |
Implements ARDOUR::Plugin.
Definition at line 68 of file ladspa_plugin.h.
|
inlinevirtual |
Implements ARDOUR::Plugin.
Definition at line 52 of file ladspa_plugin.h.
|
virtual |
Implements ARDOUR::Plugin.
Definition at line 531 of file ladspa_plugin.cc.
|
privatevirtual |
Do the actual removal of a preset of the provided name
Implements ARDOUR::Plugin.
Definition at line 837 of file ladspa_plugin.cc.
|
privatevirtual |
Do the actual saving of the current plugin settings to a preset of the provided name. Should return a URI on success, or an empty string on failure.
Implements ARDOUR::Plugin.
Definition at line 905 of file ladspa_plugin.cc.
|
privatevirtual |
Fill _presets with our presets
Implements ARDOUR::Plugin.
Definition at line 748 of file ladspa_plugin.cc.
|
virtual |
|
virtual |
Implements ARDOUR::Plugin.
Definition at line 475 of file ladspa_plugin.cc.
|
virtual |
Reimplemented from ARDOUR::Plugin.
Definition at line 646 of file ladspa_plugin.cc.
|
inlinevirtual |
Implements ARDOUR::Plugin.
Definition at line 106 of file ladspa_plugin.h.
|
inline |
Definition at line 113 of file ladspa_plugin.h.
|
private |
Definition at line 79 of file ladspa_plugin.cc.
|
inlinevirtual |
Implements ARDOUR::Plugin.
Definition at line 48 of file ladspa_plugin.h.
|
private |
Definition at line 684 of file ladspa_plugin.cc.
|
virtual |
Set parameters using a preset
Reimplemented from ARDOUR::Plugin.
Definition at line 776 of file ladspa_plugin.cc.
|
inlinevirtual |
Implements ARDOUR::Plugin.
Definition at line 50 of file ladspa_plugin.h.
|
inlinevirtual |
Implements ARDOUR::Plugin.
Definition at line 49 of file ladspa_plugin.h.
|
virtual |
Implements ARDOUR::Plugin.
Definition at line 332 of file ladspa_plugin.cc.
|
inlinevirtual |
Implements ARDOUR::Plugin.
Definition at line 51 of file ladspa_plugin.h.
|
virtual |
Implements ARDOUR::Plugin.
Definition at line 616 of file ladspa_plugin.cc.
|
virtual |
Implements ARDOUR::Plugin.
Definition at line 610 of file ladspa_plugin.cc.
|
virtual |
Implements ARDOUR::Plugin.
Definition at line 628 of file ladspa_plugin.cc.
|
virtual |
Implements ARDOUR::Plugin.
Definition at line 622 of file ladspa_plugin.cc.
bool ARDOUR::LadspaPlugin::parameter_is_toggled | ( | uint32_t | ) | const |
LADSPA_PortDescriptor LadspaPlugin::port_descriptor | ( | uint32_t | i | ) | const |
Definition at line 957 of file ladspa_plugin.cc.
|
inline |
Definition at line 117 of file ladspa_plugin.h.
|
inline |
Definition at line 116 of file ladspa_plugin.h.
|
private |
Definition at line 859 of file ladspa_plugin.cc.
|
private |
Definition at line 870 of file ladspa_plugin.cc.
|
virtual |
Implements ARDOUR::Plugin.
Definition at line 634 of file ladspa_plugin.cc.
|
inline |
Definition at line 112 of file ladspa_plugin.h.
int ARDOUR::LadspaPlugin::require_output_streams | ( | uint32_t | ) |
|
inline |
Definition at line 120 of file ladspa_plugin.h.
|
private |
Definition at line 670 of file ladspa_plugin.cc.
|
inlinevirtual |
Implements ARDOUR::Plugin.
Definition at line 83 of file ladspa_plugin.h.
|
inline |
Definition at line 119 of file ladspa_plugin.h.
|
virtual |
val | `plugin' value |
Reimplemented from ARDOUR::Plugin.
Definition at line 294 of file ladspa_plugin.cc.
|
virtual |
Reimplemented from ARDOUR::Plugin.
Definition at line 372 of file ladspa_plugin.cc.
|
private |
Definition at line 426 of file ladspa_plugin.cc.
|
virtual |
Implements ARDOUR::Latent.
Definition at line 541 of file ladspa_plugin.cc.
|
inlinevirtual |
Implements ARDOUR::Plugin.
Definition at line 90 of file ladspa_plugin.h.
|
virtual |
Implements ARDOUR::Plugin.
Definition at line 168 of file ladspa_plugin.cc.
|
private |
Definition at line 876 of file ladspa_plugin.cc.
|
private |
Definition at line 130 of file ladspa_plugin.h.
|
private |
Definition at line 127 of file ladspa_plugin.h.
|
private |
Definition at line 128 of file ladspa_plugin.h.
|
private |
Definition at line 133 of file ladspa_plugin.h.
|
private |
Definition at line 132 of file ladspa_plugin.h.
|
private |
Definition at line 126 of file ladspa_plugin.h.
|
private |
Definition at line 125 of file ladspa_plugin.h.
|
private |
Definition at line 129 of file ladspa_plugin.h.
|
private |
Definition at line 131 of file ladspa_plugin.h.
|
private |
Definition at line 134 of file ladspa_plugin.h.