diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-09 01:28:04 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-09 01:28:04 +0200 |
commit | 57118c2370fa20c737471f5aec7f9a3a55340a64 (patch) | |
tree | 20f95f9e309999c6b45383d6df0aa4b2baeece3e /libs/ardour/session_export.cc | |
parent | a6afb31245a851caf468ab4d4c3296d7443b7f7f (diff) |
Prevent FX from producing sound after export
This cuts reverb tails and synth sounds after export.
Disabling freewheeling, continues normal processing where
export left off. This previously kept notes ringing, or reverbs
audible.
Diffstat (limited to 'libs/ardour/session_export.cc')
-rw-r--r-- | libs/ardour/session_export.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/ardour/session_export.cc b/libs/ardour/session_export.cc index d66be3ada3..79e0b5a51b 100644 --- a/libs/ardour/session_export.cc +++ b/libs/ardour/session_export.cc @@ -239,7 +239,10 @@ Session::process_export (pframes_t nframes) try { /* handle export - XXX what about error handling? */ - ProcessExport (nframes); + if (ProcessExport (nframes).value_or (0) > 0) { + /* last cycle completed */ + flush_all_inserts (); + } } catch (std::exception & e) { error << string_compose (_("Export ended unexpectedly: %1"), e.what()) << endmsg; |