X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fthread_buffers.cc;h=5aa90a0598cedecd3f53c6ee97fd6c6a2abb0bcb;hb=9bf40bde3aed831791108bfccc4b1e10b071afdc;hp=9b08f5c51304bdcfdca6ee28cee9be68b890c6d4;hpb=79621762193a7a56cbb5a966cc8603c1d1c5e17c;p=ardour.git diff --git a/libs/ardour/thread_buffers.cc b/libs/ardour/thread_buffers.cc index 9b08f5c513..5aa90a0598 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,12 +87,14 @@ 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); } void -ThreadBuffers::allocate_pan_automation_buffers (framecnt_t nframes, uint32_t howmany, bool force) +ThreadBuffers::allocate_pan_automation_buffers (samplecnt_t nframes, uint32_t howmany, bool force) { /* we always need at least 2 pan buffers */