From e8202dded89e8c9b915fd2e2bb71861695d931dd Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 15 Jan 2014 14:58:59 -0500 Subject: [PATCH] add back comment explaining the use of alloca() --- libs/ardour/vst_plugin.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/ardour/vst_plugin.cc b/libs/ardour/vst_plugin.cc index f87f7b73c1..09a6f59e7c 100644 --- a/libs/ardour/vst_plugin.cc +++ b/libs/ardour/vst_plugin.cc @@ -535,6 +535,8 @@ 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 this C99 extension. Use alloca instead of dynamic + // array (rather than std::vector which allocs on the heap) float** ins = (float**)alloca(_plugin->numInputs*sizeof(float*)); float** outs = (float**)alloca(_plugin->numInputs*sizeof(float*));