move speed quietning code into Delivery, where it belongs.

Note: I find the -12dB reduction too much of a reduction.
This commit is contained in:
Paul Davis 2015-09-15 17:01:12 -04:00
parent af2b8c73b9
commit 50a6487e77
2 changed files with 9 additions and 8 deletions

View File

@ -318,6 +318,14 @@ Delivery::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, pf
goto out;
}
// Speed quietning
if (fabs (_session.transport_speed()) > 1.5 && Config->get_quieten_at_speed ()) {
Amp::apply_simple_gain (bufs, nframes, speed_quietning, false);
}
// Panning
if (_panshell && !_panshell->bypassed() && _panshell->panner()) {
// Use the panner to distribute audio to output port buffers

View File

@ -385,14 +385,7 @@ PannerShell::run (BufferSet& inbufs, BufferSet& outbufs, framepos_t start_frame,
if (!(as & Play || ((as & Touch) && !_panner->touching()))) {
// Speed quietning
gain_t gain_coeff = GAIN_COEFF_UNITY;
if (fabs(_session.transport_speed()) > 1.5 && Config->get_quieten_at_speed ()) {
gain_coeff = speed_quietning;
}
distribute_no_automation (inbufs, outbufs, nframes, gain_coeff);
distribute_no_automation (inbufs, outbufs, nframes, 1.0);
} else {