blob: 4da8d0637fe247b9398946fe7404ad5ee33c8a5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#ifndef __libardour_buffer_manager__
#define __libardour_buffer_manager__
#include <stdint.h>
#include "pbd/ringbufferNPT.h"
#include "ardour/chan_count.h"
namespace ARDOUR {
class ThreadBuffers;
class BufferManager
{
public:
static void init (uint32_t);
static ThreadBuffers* get_thread_buffers ();
static void put_thread_buffers (ThreadBuffers*);
static void ensure_buffers (ChanCount howmany = ChanCount::ZERO);
private:
typedef RingBufferNPT<ThreadBuffers*> ThreadBufferFIFO;
static ThreadBufferFIFO* thread_buffers;
};
}
#endif /* __libardour_buffer_manager__ */
|