Do not de-click during freewheel export

This commit is contained in:
Robin Gareus 2020-03-05 00:03:53 +01:00
parent 1f6686c2a0
commit 128a45954c
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 5 additions and 1 deletions

View File

@ -1126,6 +1126,10 @@ public:
return _exporting;
}
bool realtime_export() const {
return _realtime_export;
}
bool bounce_processing() const {
return _bounce_processing_active;
}

View File

@ -283,7 +283,7 @@ DiskReader::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp
const bool declicked_out = (_declick_amp.gain() == target_gain) && target_gain == 0.0;
const bool declick_out = (_declick_amp.gain() != target_gain) && target_gain == 0.0;
if (!_session.cfg ()->get_use_transport_fades ()) {
if (!_session.cfg ()->get_use_transport_fades () || (_session.exporting () && ! _session.realtime_export ())) {
_declick_amp.set_gain (target_gain);
}