summaryrefslogtreecommitdiff
path: root/libs/ardour/process_thread.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-06-03 12:26:33 +0200
committerRobin Gareus <robin@gareus.org>2017-06-03 13:54:55 +0200
commit0c57199a6ca4e6681ad934873dc107f0ef83a8ee (patch)
tree0116a50a6de8b3b5ff976e9a3a8845a99d9bfef4 /libs/ardour/process_thread.cc
parent5f7d50a69017c6de04dad8a5348f5b24bf6f0554 (diff)
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.
Diffstat (limited to 'libs/ardour/process_thread.cc')
-rw-r--r--libs/ardour/process_thread.cc11
1 files changed, 11 insertions, 0 deletions
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()
{