mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
make changes to peak-meter threshold config effective immediately
This commit is contained in:
parent
c1f56d4d7c
commit
794fa1dd03
3 changed files with 13 additions and 4 deletions
|
|
@ -843,10 +843,9 @@ GainMeterBase::update_meters()
|
||||||
snprintf (buf, sizeof(buf), "%.1f", mpeak);
|
snprintf (buf, sizeof(buf), "%.1f", mpeak);
|
||||||
peak_display.set_label (buf);
|
peak_display.set_label (buf);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (mpeak >= Config->get_meter_peak()) {
|
if (mpeak >= Config->get_meter_peak()) {
|
||||||
peak_display.set_name ("MixerStripPeakDisplayPeak");
|
peak_display.set_name ("MixerStripPeakDisplayPeak");
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -192,6 +192,7 @@ MeterStrip::MeterStrip (Session* sess, boost::shared_ptr<ARDOUR::Route> rt)
|
||||||
UI::instance()->theme_changed.connect (sigc::mem_fun(*this, &MeterStrip::on_theme_changed));
|
UI::instance()->theme_changed.connect (sigc::mem_fun(*this, &MeterStrip::on_theme_changed));
|
||||||
ColorsChanged.connect (sigc::mem_fun (*this, &MeterStrip::on_theme_changed));
|
ColorsChanged.connect (sigc::mem_fun (*this, &MeterStrip::on_theme_changed));
|
||||||
DPIReset.connect (sigc::mem_fun (*this, &MeterStrip::on_theme_changed));
|
DPIReset.connect (sigc::mem_fun (*this, &MeterStrip::on_theme_changed));
|
||||||
|
Config->ParameterChanged.connect (*this, invalidator (*this), ui_bind (&MeterStrip::parameter_changed, this, _1), gui_context());
|
||||||
}
|
}
|
||||||
|
|
||||||
MeterStrip::~MeterStrip ()
|
MeterStrip::~MeterStrip ()
|
||||||
|
|
@ -417,3 +418,11 @@ MeterStrip::redraw_metrics ()
|
||||||
meter_ticks1_area.queue_draw();
|
meter_ticks1_area.queue_draw();
|
||||||
meter_ticks2_area.queue_draw();
|
meter_ticks2_area.queue_draw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
MeterStrip::parameter_changed (std::string const & p)
|
||||||
|
{
|
||||||
|
if (p == "meter-peak") {
|
||||||
|
max_peak = -INFINITY;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -112,6 +112,7 @@ class MeterStrip : public Gtk::VBox, public RouteUI
|
||||||
|
|
||||||
bool peak_button_release (GdkEventButton*);
|
bool peak_button_release (GdkEventButton*);
|
||||||
|
|
||||||
|
void parameter_changed (std::string const & p);
|
||||||
void redraw_metrics ();
|
void redraw_metrics ();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue