}
}
-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)
{
XMLNode&
IO::get_state ()
{
- return state (true);
+ return state ();
}
XMLNode&
-IO::state (bool /*full_state*/)
+IO::state ()
{
XMLNode* node = new XMLNode (state_node_name);
int n;
}
}
+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
{
return false;
}
-/** Call a processor's ::run() method, giving it our buffers
- * Caller must hold process lock.
- */
-void
-IO::process_input (boost::shared_ptr<Processor> proc, samplepos_t start_sample, samplepos_t end_sample, double speed, pframes_t nframes)
-{
- /* don't read the data into new buffers - just use the port buffers directly */
-
- if (n_ports().n_total() == 0) {
- /* We have no ports, so nothing to process */
- return;
- }
-
- _buffers.get_backend_port_addresses (_ports, nframes);
- if (proc) {
- proc->run (_buffers, start_sample, end_sample, speed, nframes, true);
- }
-}
-
void
IO::collect_input (BufferSet& bufs, pframes_t nframes, ChanCount offset)
{