diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-07-14 00:11:04 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-07-14 00:11:04 +0000 |
commit | 997dd32d5ea12ec9412858ac0bdbc88e603ca8a1 (patch) | |
tree | 905ebf0d21070708b2618db6cb675d7bf1c03fb8 /libs/ardour/delivery.cc | |
parent | 17bfb7cad584bf985222d3d380e5e5e06c27aff2 (diff) |
add display name to processors (so that it can differ from the "real name"); pay attention to active status in Amp, Meter and Delivery
git-svn-id: svn://localhost/ardour2/branches/3.0@5360 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/delivery.cc')
-rw-r--r-- | libs/ardour/delivery.cc | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/libs/ardour/delivery.cc b/libs/ardour/delivery.cc index f8bba4c8e7..1d86542100 100644 --- a/libs/ardour/delivery.cc +++ b/libs/ardour/delivery.cc @@ -145,6 +145,23 @@ Delivery::Delivery (Session& s, boost::shared_ptr<IO> out, boost::shared_ptr<Mut CycleStart.connect (mem_fun (*this, &Delivery::cycle_start)); } +std::string +Delivery::display_name () const +{ + switch (_role) { + case Main: + return _("main outs"); + break; + case Listen: + return _("listen"); + break; + case Send: + case Insert: + default: + return name(); + } +} + void Delivery::cycle_start (nframes_t nframes) { @@ -194,7 +211,7 @@ Delivery::configure_io (ChanCount in, ChanCount out) void Delivery::run (BufferSet& bufs, sframes_t start_frame, sframes_t end_frame, nframes_t nframes) { - if (_output->n_ports ().get (_output->default_type()) == 0) { + if (!_active || _output->n_ports ().get (_output->default_type()) == 0) { return; } |