summaryrefslogtreecommitdiff
path: root/libs/ardour/amp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/amp.cc')
-rw-r--r--libs/ardour/amp.cc4
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);
}
}