From 4dc74ae2ea13d2e5a8b481961d507df1ff98df97 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 1 Aug 2013 00:35:24 +0200 Subject: 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. --- libs/ardour/session.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/ardour/session.cc') diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index ccc694f878..ce82f79bb5 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -4170,9 +4170,9 @@ Session::get_silent_buffers (ChanCount count) } BufferSet& -Session::get_scratch_buffers (ChanCount count) +Session::get_scratch_buffers (ChanCount count, bool silence) { - return ProcessThread::get_scratch_buffers (count); + return ProcessThread::get_scratch_buffers (count, silence); } BufferSet& -- cgit v1.2.3