optimization for track with zero audio channels should not short-circuit MIDI disk...
[ardour.git] / libs / ardour / process_thread.cc
index 655ab3dfccbe878bb390ba79a1f50911415020ba..3864a898fa2d649fe4e998a3936b47b7db6cbe17 100644 (file)
@@ -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()
 {