20 #include <gtkmm/messagedialog.h>
21 #include <glibmm/objectbase.h>
39 , latency_button (
_(
"Measure Latency"))
40 , input_selector (parent, sess, pi->input())
41 , output_selector (parent, sess, pi->output())
68 framecnt_t const sample_rate = AudioEngine::instance()->sample_rate();
69 if (sample_rate == 0) {
73 snprintf (buf,
sizeof (buf),
"%10.3lf frames %10.3lf ms",
89 if (mtdm->
err () > 0.3) {
95 framecnt_t const sample_rate = AudioEngine::instance()->sample_rate();
97 if (sample_rate == 0) {
103 snprintf (buf,
sizeof (buf),
"%10.3lf frames %10.3lf ms", mtdm->
del (), mtdm->
del () * 1000.0f/sample_rate);
107 if (mtdm->
err () > 0.2) {
113 strcat (buf,
" (Inv)");
120 strcat (buf,
" (set)");
161 _portinsertui (this, sess, pi)
164 set_name (
"IOSelectorWindow");
165 std::string title =
_(
"Port Insert ");
171 Gtk::Button* cancel_but = add_button (Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
172 Gtk::Button* ok_but = add_button (Gtk::Stock::OK, Gtk::RESPONSE_OK);
bool wm_delete(GdkEventAny *)
bool check_latency_measurement()
void finished(IOSelector::Result)
IOSelector input_selector
sigc::connection latency_timeout
void update_latency_display()
void stop_latency_detection()
Gtk::Label latency_display
PortInsertUI(Gtk::Window *, ARDOUR::Session *, boost::shared_ptr< ARDOUR::PortInsert >)
PortInsertUI _portinsertui
PortInsertWindow(ARDOUR::Session *, boost::shared_ptr< ARDOUR::PortInsert >)
void set_min_height_divisor(int f)
void set_measured_latency(framecnt_t)
sigc::signal< void, Result > Finished
boost::shared_ptr< ARDOUR::PortInsert > _pi
void start_latency_detection()
Gtkmm2ext::StatefulToggleButton latency_button
void latency_button_toggled()
framecnt_t latency() const
IOSelector output_selector