mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 21:55:43 +01:00
use SSE/AVX for scaling gain automation buffer via masters' value
This commit is contained in:
parent
94c11ebd90
commit
2b081ca642
1 changed files with 1 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue