Mini-timeline, use explicit cairo-group to consolidate rendering
[ardour.git] / gtk2_ardour / port_insert_ui.cc
index d0497357cd7e7e14c4bab4a9be784b6cb58928b1..0046bcb6de0ff32d700a63c53f510054c3a75190 100644 (file)
@@ -1,21 +1,23 @@
 /*
-    Copyright (C) 2002-2007 Paul Davis
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-*/
+ * Copyright (C) 2010-2011 Carl Hetherington <carl@carlh.net>
+ * Copyright (C) 2010-2017 Paul Davis <paul@linuxaudiosystems.com>
+ * Copyright (C) 2011-2012 David Robillard <d@drobilla.net>
+ * Copyright (C) 2013-2017 Robin Gareus <robin@gareus.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
 
 #include <glibmm/objectbase.h>
 
@@ -67,12 +69,12 @@ PortInsertUI::PortInsertUI (Gtk::Window* parent, ARDOUR::Session* sess, boost::s
 void
 PortInsertUI::update_latency_display ()
 {
-       framecnt_t const sample_rate = AudioEngine::instance()->sample_rate();
+       samplecnt_t const sample_rate = AudioEngine::instance()->sample_rate();
        if (sample_rate == 0) {
                latency_display.set_text (_("Disconnected from audio engine"));
        } else {
                char buf[64];
-               snprintf (buf, sizeof (buf), "%10.3lf frames %10.3lf ms",
+               snprintf (buf, sizeof (buf), "%10.3lf samples %10.3lf ms",
                          (float)_pi->latency(), (float)_pi->latency() * 1000.0f/sample_rate);
                latency_display.set_text(buf);
        }
@@ -94,7 +96,7 @@ PortInsertUI::check_latency_measurement ()
        }
 
        char buf[128];
-       framecnt_t const sample_rate = AudioEngine::instance()->sample_rate();
+       samplecnt_t const sample_rate = AudioEngine::instance()->sample_rate();
 
        if (sample_rate == 0) {
                latency_display.set_text (_("Disconnected from audio engine"));
@@ -102,7 +104,7 @@ PortInsertUI::check_latency_measurement ()
                return false;
        }
 
-       snprintf (buf, sizeof (buf), "%10.3lf frames %10.3lf ms", mtdm->del (), mtdm->del () * 1000.0f/sample_rate);
+       snprintf (buf, sizeof (buf), "%10.3lf samples %10.3lf ms", mtdm->del (), mtdm->del () * 1000.0f/sample_rate);
 
        bool solid = true;