From 2b081ca6427cbfa22d48d124675826bae0883807 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 21 Jan 2017 15:22:38 +0000 Subject: use SSE/AVX for scaling gain automation buffer via masters' value --- libs/ardour/amp.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libs/ardour/amp.cc') diff --git a/libs/ardour/amp.cc b/libs/ardour/amp.cc index a111350068..46af91bf05 100644 --- a/libs/ardour/amp.cc +++ b/libs/ardour/amp.cc @@ -406,9 +406,7 @@ Amp::setup_gain_automation (framepos_t start_frame, framepos_t end_frame, framec if (_gain_control->slaved()) { const double master_gain = _gain_control->get_masters_value (); if (master_gain != 1.0) { - for (framecnt_t n = 0; n < nframes; ++n) { - _gain_automation_buffer[n] *= master_gain; - } + apply_gain_to_buffer (_gain_automation_buffer, nframes, master_gain); } } -- cgit v1.2.3