Remove all use of nframes_t.
[ardour.git] / libs / ardour / ardour / thread_buffers.h
1 #ifndef __libardour_thread_buffers__
2 #define __libardour_thread_buffers__
3
4 #include <glibmm/thread.h>
5
6 #include "ardour/chan_count.h"
7 #include "ardour/types.h"
8
9 namespace ARDOUR {
10
11 class BufferSet;
12
13 class ThreadBuffers {
14   public:  
15         ThreadBuffers ();
16         ~ThreadBuffers ();
17
18         void ensure_buffers (ChanCount howmany = ChanCount::ZERO);
19
20         BufferSet* silent_buffers;
21         BufferSet* scratch_buffers;
22         BufferSet* mix_buffers;
23         gain_t*    gain_automation_buffer;
24         pan_t**    pan_automation_buffer;
25         uint32_t   npan_buffers;
26
27   private:
28         void allocate_pan_automation_buffers (framecnt_t nframes, uint32_t howmany, bool force);
29 };
30
31 } // namespace
32
33 #endif /* __libardour_thread_buffers__ */