diff options
author | Robin Gareus <robin@gareus.org> | 2020-03-06 23:55:35 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-03-06 23:55:56 +0100 |
commit | d142619cf4990822db6414cb0722d6df1674c682 (patch) | |
tree | e6ba83c10d1b23c0c5883e2077850775fb77fe8e /libs/ardour/disk_reader.cc | |
parent | c8d449f356af6f090a319ed534f9b049e94e10be (diff) |
Fix MIDI export and post-export transport issues
Bug was introduced in 128a45954cf, declick-amp gain was
overridden, but declick not cleared. For some reason this did
not affect audio-only exports nor all session exports.
Diffstat (limited to 'libs/ardour/disk_reader.cc')
-rw-r--r-- | libs/ardour/disk_reader.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/ardour/disk_reader.cc b/libs/ardour/disk_reader.cc index 28f0ed3684..02805c3bcd 100644 --- a/libs/ardour/disk_reader.cc +++ b/libs/ardour/disk_reader.cc @@ -499,7 +499,10 @@ DiskReader::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp bool DiskReader::declick_in_progress () const { - return _session.cfg()->get_use_transport_fades() && (_declick_amp.gain() != 0); // declick-out + if (!_session.cfg()->get_use_transport_fades () || (_session.exporting () && ! _session.realtime_export ())) { + return false; + } + return (_declick_amp.gain() != 0); // declick-out } bool |