summaryrefslogtreecommitdiff
path: root/libs/ardour/thread_buffers.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/thread_buffers.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/thread_buffers.cc')
-rw-r--r--libs/ardour/thread_buffers.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/ardour/thread_buffers.cc b/libs/ardour/thread_buffers.cc
index 9b08f5c513..abd8e9d333 100644
--- a/libs/ardour/thread_buffers.cc
+++ b/libs/ardour/thread_buffers.cc
@@ -36,6 +36,7 @@ ThreadBuffers::ThreadBuffers ()
, gain_automation_buffer (0)
, trim_automation_buffer (0)
, send_gain_automation_buffer (0)
+ , scratch_automation_buffer (0)
, pan_automation_buffer (0)
, npan_buffers (0)
{
@@ -86,6 +87,8 @@ ThreadBuffers::ensure_buffers (ChanCount howmany, size_t custom)
trim_automation_buffer = new gain_t[audio_buffer_size];
delete [] send_gain_automation_buffer;
send_gain_automation_buffer = new gain_t[audio_buffer_size];
+ delete [] scratch_automation_buffer;
+ scratch_automation_buffer = new gain_t[audio_buffer_size];
allocate_pan_automation_buffers (audio_buffer_size, howmany.n_audio(), false);
}