diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2017-01-21 15:22:38 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2017-01-21 15:22:38 +0000 |
commit | 2b081ca6427cbfa22d48d124675826bae0883807 (patch) | |
tree | 318073b8fed177c235bb9947caf5a517b7cf2a4d /libs/ardour/amp.cc | |
parent | 94c11ebd90f3243a0e5af010ce9208ff1fef9637 (diff) |
use SSE/AVX for scaling gain automation buffer via masters' value
Diffstat (limited to 'libs/ardour/amp.cc')
-rw-r--r-- | libs/ardour/amp.cc | 4 |
1 files changed, 1 insertions, 3 deletions
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); } } |