Silence DR after freewheel export

This commit is contained in:
Robin Gareus 2022-05-10 05:49:25 +02:00
parent 445e8c468e
commit 834ca29cde
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 8 additions and 0 deletions

View File

@ -186,6 +186,11 @@ DiskReader::set_state (const XMLNode& node, int version)
void
DiskReader::realtime_handle_transport_stopped ()
{
if (_session.exporting () && !_session.realtime_export ()) {
printf ("DR POST EXPORT DiskReader::realtime_handle_transport_stopped\n");
_declick_amp.set_gain (0);
}
/* can't do the resolve here because we don't have a place to put the
* note resolving data. Defer to
* MidiTrack::realtime_handle_transport_stopped() which will call

View File

@ -273,6 +273,9 @@ Session::process_export (pframes_t nframes)
if (ProcessExport (nframes).value_or (0) > 0) {
/* last cycle completed */
assert (_export_rolling);
if (!_realtime_export) {
_transport_fsm->hard_stop ();
}
stop_audio_export ();
}