2 * Copyright (C) 2016 Robin Gareus <robin@gareus.org>
3 * Copyright (C) 2006 Paul Davis
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef __ardour_sidechain_h__
21 #define __ardour_sidechain_h__
25 #include "pbd/stateful.h"
26 #include "ardour/ardour.h"
27 #include "ardour/io_processor.h"
31 class LIBARDOUR_API SideChain : public IOProcessor
34 SideChain (Session&, const std::string&);
35 virtual ~SideChain ();
37 void run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_sample, double speed, pframes_t nframes, bool);
39 bool can_support_io_configuration (const ChanCount& in, ChanCount& out);
40 bool configure_io (ChanCount in, ChanCount out);
42 XMLNode& state(bool full);
43 int set_state(const XMLNode&, int version);
46 /* disallow copy construction */
47 SideChain (const SideChain&);
52 #endif // __ardour_sidechain_h__