21 #include "libardour-config.h"
33 #ifdef WINDOWS_VST_SUPPORT
37 #ifdef AUDIOUNIT_SUPPORT
56 Processor::Processor(
Session& session,
const string&
name)
59 , _pending_active(false)
61 , _next_ab_is_active(false)
63 , _display_to_user (true)
72 :
Evoral::ControlSet (other)
76 , _pending_active(other._pending_active)
77 , _active(other._active)
78 , _next_ab_is_active(false)
80 , _display_to_user (true)
114 id().
print (buf,
sizeof (buf));
145 if ((*i)->name() ==
X_(
"IO")) {
147 if ((prop = (*i)->property (
"name")) != 0) {
175 if (version < 3000) {
181 bool leave_name_alone = (node.
property (
"ignore-name") != 0);
183 if (!leave_name_alone) {
185 if ((prop = node.
property (
"name")) != 0) {
200 for (niter = nlist.begin(); niter != nlist.end(); ++niter) {
202 if ((*niter)->name() ==
X_(
"Automation")) {
206 if ((prop = (*niter)->property (
"path")) != 0) {
212 }
else if ((*niter)->name() ==
"Redirect") {
213 if ( !(legacy_active = (*niter)->property(
"active"))) {
214 error <<
string_compose(
_(
"No %1 property flag in element %2"),
"active", (*niter)->name()) << endl;
219 if ((prop = node.
property (
"active")) == 0) {
221 prop = legacy_active;
223 error <<
_(
"No child node with active property") <<
endmsg;
237 if ((prop = node.
property (
"user-latency")) != 0) {
bool _pre_fader
true if this processor is currently placed before the Amp, otherwise false
XMLNodeList::iterator XMLNodeIterator
ARDOUR::Session & _session
int atoi(const string &s)
const XMLPropertyList & properties() const
const std::string & value() const
static bool get_disable_all_loaded_plugins()
void save_extra_xml(const XMLNode &)
void set_window_proxy(ProcessorWindowProxy *wp)
void set_owner(SessionObject *)
XMLNode * add_child_copy(const XMLNode &)
LIBPBD_API Transmitter error
const XMLNodeList & children(const std::string &str=std::string()) const
std::ostream & endmsg(std::ostream &ostr)
PBD::Signal2< void, ChanCount, ChanCount > ConfigurationChanged
int set_state(const XMLNode &, int version)
ProcessorWindowProxy * _window_proxy
XMLNode & get_state(void)
std::list< XMLNode * > XMLNodeList
ChanCount _configured_output
virtual void deactivate()
static const char * state_node_name
static const std::string state_node_name
XMLProperty * property(const char *)
bool string_is_affirmative(const std::string &str)
const PBD::ID & id() const
virtual bool set_name(const std::string &str)
void print(char *buf, uint32_t bufsize) const
bool set_id(const XMLNode &)
int old_set_automation_state(const XMLNode &)
virtual bool configure_io(ChanCount in, ChanCount out)
virtual int set_state_2X(const XMLNode &, int version)
PBD::Property< std::string > _name
int set_automation_xml_state(const XMLNode &, Evoral::Parameter default_param)
XMLProperty * add_property(const char *name, const std::string &value)
Processor(Session &, const std::string &name)
SessionObject * owner() const
void add_child_nocopy(XMLNode &)
virtual XMLNode & state(bool full)
XMLNode & get_automation_xml_state()
std::string string_compose(const std::string &fmt, const T1 &o1)
virtual void set_display_to_user(bool)
ChanCount _configured_input