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:
parent
af2b8c73b9
commit
50a6487e77
@ -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
|
||||
|
@ -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 {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user