Fix initial disk-reader fade-in

Since 4508d5bab this only happened after a fade-out.

Currently there is no fade when transport is stopped and monitor
mode changes MonitoringDisk <-> MonitoringInput.
DiskReader::DeclickAmp is only used for data from disk.
Fading live-input data passing through will likely need another
Amp.
This commit is contained in:
Robin Gareus 2020-05-07 16:12:52 +02:00
parent 4fa955baf2
commit 9604e64c35
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -292,6 +292,9 @@ DiskReader::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp
} else {
_declick_enabled = _session.cfg ()->get_use_monitor_fades ();
}
} else if (_declick_amp.gain () == GAIN_COEFF_ZERO && speed == 0) {
/* fade in */
_declick_enabled = _session.cfg ()->get_use_transport_fades ();
}
if (!_declick_enabled || (_session.exporting () && !_session.realtime_export ())) {