2 Copyright (C) 2006 Paul Davis
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License as published by the Free
6 Software Foundation; either version 2 of the License, or (at your option)
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 675 Mass Ave, Cambridge, MA 02139, USA.
21 #include "ardour/control_outputs.h"
22 #include "ardour/audio_buffer.h"
23 #include "ardour/buffer_set.h"
24 #include "ardour/configuration.h"
25 #include "ardour/io.h"
26 #include "ardour/session.h"
32 ControlOutputs::ControlOutputs(Session& s, IO* io)
33 : IOProcessor(s, io, "Control Outs")
39 ControlOutputs::can_support_io_configuration (const ChanCount& in, ChanCount& out) const
46 ControlOutputs::configure_io (ChanCount in, ChanCount out)
48 if (out != in) { // always 1:1
52 return Processor::configure_io (in, out);
56 ControlOutputs::run_in_place (BufferSet& bufs, nframes_t start_frame, nframes_t end_frame, nframes_t nframes)
59 _io->deliver_output (bufs, start_frame, end_frame, nframes);
61 _io->silence (nframes);
66 ControlOutputs::state (bool full_state)
72 ControlOutputs::get_state()
74 XMLNode* node = new XMLNode(state_node_name);
75 node->add_property("type", "control-outputs");