proper display name for Monitor Processor
This commit is contained in:
parent
47922c5d19
commit
dd9e0e49a0
|
@ -54,12 +54,7 @@ Amp::Amp (Session& s, std::string type)
|
||||||
_gain_control->set_flags (Controllable::GainLike);
|
_gain_control->set_flags (Controllable::GainLike);
|
||||||
|
|
||||||
add_control(_gain_control);
|
add_control(_gain_control);
|
||||||
}
|
set_display_name (_type == "trim" ? _("Trim") : _("Fader"));
|
||||||
|
|
||||||
std::string
|
|
||||||
Amp::display_name() const
|
|
||||||
{
|
|
||||||
return _type == "trim" ? _("Trim") : _("Fader");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
|
@ -38,7 +38,9 @@ class LIBARDOUR_API Amp : public Processor {
|
||||||
public:
|
public:
|
||||||
Amp(Session& s, std::string type = "amp");
|
Amp(Session& s, std::string type = "amp");
|
||||||
|
|
||||||
std::string display_name() const;
|
std::string display_name () const { return _display_name; }
|
||||||
|
void set_display_name (const std::string& name) { _display_name = name; }
|
||||||
|
|
||||||
std::string type() const { return _type;}
|
std::string type() const { return _type;}
|
||||||
|
|
||||||
bool visible () const;
|
bool visible () const;
|
||||||
|
@ -121,6 +123,8 @@ private:
|
||||||
float _current_gain;
|
float _current_gain;
|
||||||
framepos_t _current_automation_frame;
|
framepos_t _current_automation_frame;
|
||||||
|
|
||||||
|
std::string _display_name;
|
||||||
|
|
||||||
boost::shared_ptr<GainControl> _gain_control;
|
boost::shared_ptr<GainControl> _gain_control;
|
||||||
|
|
||||||
/** Buffer that we should use for gain automation */
|
/** Buffer that we should use for gain automation */
|
||||||
|
|
|
@ -174,6 +174,10 @@ Route::init ()
|
||||||
_amp.reset (new Amp (_session));
|
_amp.reset (new Amp (_session));
|
||||||
add_processor (_amp, PostFader);
|
add_processor (_amp, PostFader);
|
||||||
|
|
||||||
|
if (is_monitor ()) {
|
||||||
|
_amp->set_display_name ("Monitor");
|
||||||
|
}
|
||||||
|
|
||||||
// amp should exist before amp controls
|
// amp should exist before amp controls
|
||||||
_group_gain_control.reset (new GroupGainControllable (X_("groupgain"), shared_from_this ()));
|
_group_gain_control.reset (new GroupGainControllable (X_("groupgain"), shared_from_this ()));
|
||||||
_group_gain_control->set_flags (Controllable::Flag (_group_gain_control->flags() | Controllable::GainLike));
|
_group_gain_control->set_flags (Controllable::Flag (_group_gain_control->flags() | Controllable::GainLike));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user