diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-03 14:38:45 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-03 14:49:03 +0200 |
commit | 35aab65d59a753c5acf33ae7da8fb7b018f3471b (patch) | |
tree | 13bfa93a6833a2db9549867f04a5b946a61db67b | |
parent | fb186aaaa000d67ce5b0bd0522e73c6f16edd085 (diff) |
Consistent processor labels "Meter"
Track name is implicit, so instead of "meter-<name>", showing a
translatable label "Meter" is sufficient and consistent with "Fader".
Under the hood, for introspection, the processor name remains as is.
-rw-r--r-- | libs/ardour/ardour/meter.h | 2 | ||||
-rw-r--r-- | libs/ardour/meter.cc | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/libs/ardour/ardour/meter.h b/libs/ardour/ardour/meter.h index 332b05cc2d..47a96da95a 100644 --- a/libs/ardour/ardour/meter.h +++ b/libs/ardour/ardour/meter.h @@ -49,6 +49,8 @@ public: void reset (); void reset_max (); + std::string display_name() const; + bool can_support_io_configuration (const ChanCount& in, ChanCount& out); bool configure_io (ChanCount in, ChanCount out); diff --git a/libs/ardour/meter.cc b/libs/ardour/meter.cc index 9558a663fe..9b18bb0fbd 100644 --- a/libs/ardour/meter.cc +++ b/libs/ardour/meter.cc @@ -35,6 +35,8 @@ #include "ardour/rc_configuration.h" #include "ardour/runtime_functions.h" +#include "pbd/i18n.h" + using namespace std; using namespace ARDOUR; @@ -73,6 +75,11 @@ PeakMeter::~PeakMeter () } } +std::string +PeakMeter::display_name() const +{ + return _("Meter"); +} /** Get peaks from @a bufs * Input acceptance is lenient - the first n buffers from @a bufs will |