triggerbox: flush newly recorded cue markers back to RT context

This commit is contained in:
Paul Davis 2022-01-21 10:31:16 -07:00
parent d830800ed9
commit b023b97538
2 changed files with 4 additions and 1 deletions

View File

@ -1653,7 +1653,7 @@ Session::first_cue_within (samplepos_t s, samplepos_t e)
}
void
Session::cue_marker_change (Location* loc)
Session::cue_marker_change (Location* /* ignored */)
{
SessionEvent* ev = new SessionEvent (SessionEvent::SyncCues, SessionEvent::Add, SessionEvent::Immediate, 0, 0.0);
queue_event (ev);

View File

@ -2102,4 +2102,7 @@ Session::flush_cue_recording ()
Location* l = new Location (*this, when, when, std::string(), Location::Flags (Location::IsMark|Location::IsCueMarker), cr.cue_number);
_locations->add (l);
}
/* scheduled sync of cue markers in RT thread */
cue_marker_change (0);
}