Fix playback of initial notes during MIDI audition

This commit is contained in:
Robin Gareus 2022-02-04 19:32:34 +01:00
parent 6df1bd3ad5
commit 617697a823
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -5354,6 +5354,19 @@ Session::non_realtime_set_audition ()
assert (pending_audition_region);
auditioner->audition_region (pending_audition_region);
pending_audition_region.reset ();
/* clear any SessionEvent::Overwrite that the DR may have scheduled
* due to PL modification. audition_region() will have called
* overwrite_existing_buffers().
*
* Otherwise the event will be handled in the future by
* Session::process_audition () after !non_realtime_work_pending().
* This will cause the DiskReader::run_must_resolve = true, and the
* Note-tracker will kill any active notes, while auditioning
* is already in progress.
*/
_clear_event_type (SessionEvent::Overwrite);
AuditionActive (true); /* EMIT SIGNAL */
}