Ardour  9.0-pre0-582-g084a23a80d
internal_return.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2009-2011 David Robillard <d@drobilla.net>
3  * Copyright (C) 2009-2012 Carl Hetherington <carl@carlh.net>
4  * Copyright (C) 2009-2017 Paul Davis <paul@linuxaudiosystems.com>
5  * Copyright (C) 2013-2021 Robin Gareus <robin@gareus.org>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along
18  * with this program; if not, write to the Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20  */
21 
22 #pragma once
23 
24 #include <list>
25 
26 #include "ardour/buffer_set.h"
27 #include "ardour/processor.h"
28 
29 namespace ARDOUR {
30 
31 class InternalSend;
32 
34 {
35 public:
36  InternalReturn (Session&, Temporal::TimeDomainProvider const &, std::string const& name = "Return");
37 
38  void run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_sample, double speed, pframes_t nframes, bool);
41 
44 
46 
47 protected:
48  XMLNode& state () const;
49 
50 private:
52  std::list<InternalSend*> _sends;
54  Glib::Threads::Mutex _sends_mutex;
55 };
56 
57 } // namespace ARDOUR
58 
Glib::Threads::Mutex _sends_mutex
bool configure_io(ChanCount, ChanCount)
void remove_send(InternalSend *)
bool can_support_io_configuration(const ChanCount &in, ChanCount &out)
std::list< InternalSend * > _sends
InternalReturn(Session &, Temporal::TimeDomainProvider const &, std::string const &name="Return")
void set_playback_offset(samplecnt_t cnt)
XMLNode & state() const
void run(BufferSet &bufs, samplepos_t start_sample, samplepos_t end_sample, double speed, pframes_t nframes, bool)
void add_send(InternalSend *)
Definition: xml++.h:114
GtkImageIconNameData name
Definition: gtkimage.h:6
#define LIBARDOUR_API
uint32_t pframes_t
Temporal::samplecnt_t samplecnt_t
Temporal::samplepos_t samplepos_t