/* create an IOProcessor that proxies to an existing IO object */
IOProcessor::IOProcessor (Session& s, boost::shared_ptr<IO> in, boost::shared_ptr<IO> out,
- const string& proc_name, DataType dtype)
+ const string& proc_name, DataType /*dtype*/)
: Processor(s, proc_name)
, _input (in)
, _output (out)
}
}
-ChanCount
-IOProcessor::output_streams() const
-{
- return _output ? _output->n_ports() : ChanCount::ZERO;
-}
-
-ChanCount
-IOProcessor::input_streams () const
-{
- return _input ? _input->n_ports() : ChanCount::ZERO;
-}
-
ChanCount
IOProcessor::natural_output_streams() const
{
{
return _output && _output->connected_to (other->input());
}
+
+void
+IOProcessor::disconnect ()
+{
+ if (_input) {
+ _input->disconnect (this);
+ }
+
+ if (_output) {
+ _output->disconnect (this);
+ }
+}