From 0c57199a6ca4e6681ad934873dc107f0ef83a8ee Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 3 Jun 2017 12:26:33 +0200 Subject: Add a scratch buffer for automation. Useful as temporary buffer: This allows a controllable to get a master's automation-curve and combine it with its own (gain, trim, send) automation buffer. --- libs/ardour/process_thread.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libs/ardour/process_thread.cc') diff --git a/libs/ardour/process_thread.cc b/libs/ardour/process_thread.cc index 655ab3dfcc..3864a898fa 100644 --- a/libs/ardour/process_thread.cc +++ b/libs/ardour/process_thread.cc @@ -208,6 +208,17 @@ ProcessThread::send_gain_automation_buffer() return g; } +gain_t* +ProcessThread::scratch_automation_buffer() +{ + ThreadBuffers* tb = _private_thread_buffers.get(); + assert (tb); + + gain_t* g = tb->scratch_automation_buffer; + assert (g); + return g; +} + pan_t** ProcessThread::pan_automation_buffer() { -- cgit v1.2.3