clear up some stupid thinking in Amp regarding the way the underlying AutomationContr...
[ardour.git] / libs / ardour / vst_plugin.cc
index f87f7b73c19b7aede0c4de37fc740aea3a906ff1..5c9c94bdac9a5d303570bc81729125201bf1f10f 100644 (file)
@@ -535,6 +535,14 @@ VSTPlugin::connect_and_run (BufferSet& bufs,
        BufferSet& silent_bufs  = _session.get_silent_buffers(bufs_count);
        BufferSet& scratch_bufs = _session.get_scratch_buffers(bufs_count);
 
+       /* VC++ doesn't support the C99 extension that allows 
+
+          typeName foo[variableDefiningSize];
+          
+          Use alloca instead of dynamic array (rather than std::vector which
+          allocs on the heap) because this is realtime code.
+       */
+          
        float** ins = (float**)alloca(_plugin->numInputs*sizeof(float*));
        float** outs = (float**)alloca(_plugin->numInputs*sizeof(float*));