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/amp.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/amp.cc')
-rw-r--r-- | libs/ardour/amp.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/ardour/amp.cc b/libs/ardour/amp.cc index d6c6f00ee5..34ea20addf 100644 --- a/libs/ardour/amp.cc +++ b/libs/ardour/amp.cc @@ -47,6 +47,12 @@ Amp::Amp(Session& s, boost::shared_ptr<MuteMaster> mm) add_control(_gain_control); } +std::string +Amp::display_name() const +{ + return _("Fader"); +} + bool Amp::can_support_io_configuration (const ChanCount& in, ChanCount& out) const { @@ -69,6 +75,10 @@ Amp::run (BufferSet& bufs, sframes_t start_frame, sframes_t end_frame, nframes_t { gain_t mute_gain; + if (!_active) { + return; + } + if (_mute_master) { mute_gain = _mute_master->mute_gain_at (MuteMaster::PreFader); } else { |