mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-01 03:17:39 +01:00
improve comment explaining the use of alloca()
This commit is contained in:
parent
e8202dded8
commit
ca621b3fbf
1 changed files with 8 additions and 2 deletions
|
|
@ -535,8 +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 this C99 extension. Use alloca instead of dynamic
|
||||
// array (rather than std::vector which allocs on the heap)
|
||||
/* 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*));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue