X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fthread_buffers.cc;h=5aa90a0598cedecd3f53c6ee97fd6c6a2abb0bcb;hb=88c82aeb56c62d9d0c0acff51e360492ad9b8d23;hp=b51576bfc920e1e46a5b908f38b5fe58dd106182;hpb=23e7cf10191270d70357ccf0ed9294f020c7b7ab;p=ardour.git diff --git a/libs/ardour/thread_buffers.cc b/libs/ardour/thread_buffers.cc index b51576bfc9..5aa90a0598 100644 --- a/libs/ardour/thread_buffers.cc +++ b/libs/ardour/thread_buffers.cc @@ -30,10 +30,13 @@ using namespace std; ThreadBuffers::ThreadBuffers () : silent_buffers (new BufferSet) , scratch_buffers (new BufferSet) + , noinplace_buffers (new BufferSet) , route_buffers (new BufferSet) , mix_buffers (new BufferSet) , gain_automation_buffer (0) + , trim_automation_buffer (0) , send_gain_automation_buffer (0) + , scratch_automation_buffer (0) , pan_automation_buffer (0) , npan_buffers (0) { @@ -70,6 +73,7 @@ ThreadBuffers::ensure_buffers (ChanCount howmany, size_t custom) } scratch_buffers->ensure_buffers (*t, count, size); + noinplace_buffers->ensure_buffers (*t, count, size); mix_buffers->ensure_buffers (*t, count, size); silent_buffers->ensure_buffers (*t, count, size); route_buffers->ensure_buffers (*t, count, size); @@ -79,14 +83,18 @@ ThreadBuffers::ensure_buffers (ChanCount howmany, size_t custom) delete [] gain_automation_buffer; gain_automation_buffer = new gain_t[audio_buffer_size]; + delete [] trim_automation_buffer; + 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 */