diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-07-15 00:47:34 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-07-15 00:47:34 +0000 |
commit | 49445140345fd4e57a833d3803e529c0c07d221c (patch) | |
tree | 346d43002ef9ab1f2486fd1b58a34d4dca6a9a43 /libs/ardour/send.cc | |
parent | f01af9836e46fb2c459d16e9956ff6b9be0355d0 (diff) |
processor naming tweaks, processor visibility tweaks and more, trying to finish this audio routing thing...
git-svn-id: svn://localhost/ardour2/branches/3.0@5364 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/send.cc')
-rw-r--r-- | libs/ardour/send.cc | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/libs/ardour/send.cc b/libs/ardour/send.cc index df6b87a686..3d44070e68 100644 --- a/libs/ardour/send.cc +++ b/libs/ardour/send.cc @@ -36,9 +36,8 @@ using namespace ARDOUR; using namespace PBD; -Send::Send (Session& s, boost::shared_ptr<MuteMaster> mm, bool internal) - : Delivery (s, mm, string_compose (_("send %1"), (_bitslot = s.next_send_id()) + 1), - (internal ? Delivery::Listen : Delivery::Send)) +Send::Send (Session& s, boost::shared_ptr<MuteMaster> mm, Role r) + : Delivery (s, mm, string_compose (_("send %1"), (_bitslot = s.next_send_id()) + 1), r) , _metering (false) { _amp.reset (new Amp (_session, _mute_master)); @@ -47,8 +46,8 @@ Send::Send (Session& s, boost::shared_ptr<MuteMaster> mm, bool internal) ProcessorCreated (this); /* EMIT SIGNAL */ } -Send::Send (Session& s, boost::shared_ptr<MuteMaster> mm, const XMLNode& node, bool internal) - : Delivery (s, mm, "send", (internal ? Delivery::Listen : Delivery::Send)) +Send::Send (Session& s, boost::shared_ptr<MuteMaster> mm, const XMLNode& node, Role r) + : Delivery (s, mm, "send", r) , _metering (false) { _amp.reset (new Amp (_session, _mute_master)); @@ -184,6 +183,7 @@ Send::make_unique (XMLNode &state, Session &session) state.property("name")->set_value (name); XMLNode* io = state.child ("IO"); + if (io) { io->property("name")->set_value (name); } @@ -194,7 +194,7 @@ Send::set_name (const std::string& new_name) { std::string unique_name; - if (_role != Listen) { + if (_role == Delivery::Send) { char buf[32]; snprintf (buf, sizeof (buf), "%u", _bitslot); unique_name = new_name; @@ -205,3 +205,13 @@ Send::set_name (const std::string& new_name) return Delivery::set_name (unique_name); } + +bool +Send::visible () const +{ + if (_role == Listen) { + return false; + } + + return true; +} |