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.
19 #ifndef __ardour_delivery_h__
20 #define __ardour_delivery_h__
23 #include "ardour/types.h"
24 #include "ardour/chan_count.h"
25 #include "ardour/io_processor.h"
32 class Delivery : public IOProcessor {
41 Delivery (Session& s, IO* io, const std::string& name, Role);
42 Delivery (Session& s, const std::string& name, Role);
43 Delivery (Session&, const XMLNode&);
47 Role role() const { return _role; }
49 bool can_support_io_configuration (const ChanCount& in, ChanCount& out) const;
50 bool configure_io (ChanCount in, ChanCount out);
52 void run_in_place (BufferSet& bufs, sframes_t start_frame, sframes_t end_frame, nframes_t nframes);
54 void set_metering (bool yn);
56 bool muted_by_self() const { return _muted_by_self; }
57 bool muted_by_others() const { return _muted_by_others; }
59 void set_self_mute (bool);
60 void set_nonself_mute (bool);
62 sigc::signal<void> SelfMuteChange;
63 sigc::signal<void> OtherMuteChange;
65 XMLNode& state (bool full);
66 int set_state (const XMLNode&);
72 bool _muted_by_others;
78 #endif // __ardour__h__