Prepare export-format codec-quality setting
[ardour.git] / libs / ardour / io.cc
index 3628ec9b48ff92be87bcb2f08d82a36d6aa1c534..99cd41657fbd020648459b787609a86b23a42dc4 100644 (file)
@@ -130,18 +130,6 @@ IO::disconnect_check (boost::shared_ptr<Port> a, boost::shared_ptr<Port> b)
        }
 }
 
-void
-IO::increment_port_buffer_offset (pframes_t offset)
-{
-       /* io_lock, not taken: function must be called from Session::process() calltree */
-
-       if (_direction == Output) {
-               for (PortSet::iterator i = _ports.begin(); i != _ports.end(); ++i) {
-                       i->increment_port_buffer_offset (offset);
-               }
-       }
-}
-
 void
 IO::silence (samplecnt_t nframes)
 {
@@ -1216,6 +1204,26 @@ IO::apply_pretty_name ()
        }
 }
 
+void
+IO::set_private_port_latencies (samplecnt_t value, bool playback)
+{
+       LatencyRange lat;
+       lat.min = lat.max = value;
+       for (PortSet::iterator i = _ports.begin (); i != _ports.end(); ++i) {
+                i->set_private_latency_range (lat, playback);
+       }
+}
+
+void
+IO::set_public_port_latencies (samplecnt_t value, bool playback) const
+{
+       LatencyRange lat;
+       lat.min = lat.max = value;
+       for (PortSet::const_iterator i = _ports.begin (); i != _ports.end(); ++i) {
+                i->set_public_latency_range (lat, playback);
+       }
+}
+
 samplecnt_t
 IO::latency () const
 {