diff options
author | Robin Gareus <robin@gareus.org> | 2013-08-01 00:35:24 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-08-01 00:35:24 +0200 |
commit | 4dc74ae2ea13d2e5a8b481961d507df1ff98df97 (patch) | |
tree | 78dec5b3fc587a50e111e554478eb07475831594 /libs/ardour/ardour/process_thread.h | |
parent | f81cbe06ea3439d0c58057ae40ea63f1b6bf484b (diff) |
use zeroed scratch buffers for "silent" plugin runs
Plugins rewrite the buffer data in-place and some plugins
can produce output even when fed with silence.
Hence, during a PluginInsert::silence() run a plugin can
inject data into the "silent" buffers which causes side-effects.
Kudos to Chris 'oofus' Goddard for finding this issue.
Diffstat (limited to 'libs/ardour/ardour/process_thread.h')
-rw-r--r-- | libs/ardour/ardour/process_thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/ardour/process_thread.h b/libs/ardour/ardour/process_thread.h index 399cd506a3..f96595fbbf 100644 --- a/libs/ardour/ardour/process_thread.h +++ b/libs/ardour/ardour/process_thread.h @@ -45,7 +45,7 @@ public: */ static BufferSet& get_silent_buffers (ChanCount count = ChanCount::ZERO); - static BufferSet& get_scratch_buffers (ChanCount count = ChanCount::ZERO); + static BufferSet& get_scratch_buffers (ChanCount count = ChanCount::ZERO, bool silence = false); static BufferSet& get_route_buffers (ChanCount count = ChanCount::ZERO, bool silence = false); static BufferSet& get_mix_buffers (ChanCount count = ChanCount::ZERO); static gain_t* gain_automation_buffer (); |