Ardour  9.0-pre0-582-g084a23a80d
thread_buffers.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2010-2012 Carl Hetherington <carl@carlh.net>
3  * Copyright (C) 2010-2017 Paul Davis <paul@linuxaudiosystems.com>
4  * Copyright (C) 2013-2017 Robin Gareus <robin@gareus.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19  */
20 
21 #ifndef __libardour_thread_buffers__
22 #define __libardour_thread_buffers__
23 
24 #include <glibmm/threads.h>
25 
26 #include "ardour/chan_count.h"
28 #include "ardour/types.h"
29 
30 namespace ARDOUR {
31 
32 class BufferSet;
33 
35 public:
38 
39  void ensure_buffers (ChanCount howmany = ChanCount::ZERO, size_t custom = 0);
40 
51  uint32_t npan_buffers;
52 
53 private:
54  void allocate_pan_automation_buffers (samplecnt_t nframes, uint32_t howmany, bool force);
55 };
56 
57 } // namespace
58 
59 #endif /* __libardour_thread_buffers__ */
static const ChanCount ZERO
Definition: chan_count.h:208
gain_t * scratch_automation_buffer
BufferSet * route_buffers
gain_t * trim_automation_buffer
BufferSet * scratch_buffers
void ensure_buffers(ChanCount howmany=ChanCount::ZERO, size_t custom=0)
gain_t * gain_automation_buffer
gain_t * send_gain_automation_buffer
pan_t ** pan_automation_buffer
void allocate_pan_automation_buffers(samplecnt_t nframes, uint32_t howmany, bool force)
BufferSet * noinplace_buffers
BufferSet * silent_buffers
#define LIBARDOUR_API
Temporal::samplecnt_t samplecnt_t