diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-01-15 14:58:59 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-01-15 14:58:59 -0500 |
commit | e8202dded89e8c9b915fd2e2bb71861695d931dd (patch) | |
tree | 2c1278c23e33e6f7502babe5cb7eea79467d4ea4 /libs | |
parent | 9aacefc17010a889222425f97b99050171165038 (diff) |
add back comment explaining the use of alloca()
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/vst_plugin.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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*)); |