mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 23:25:43 +01:00
Trigger page: changes to cue-recording behavior (see comments)
This commit is contained in:
parent
dab9f8d226
commit
00aec4f91e
1 changed files with 6 additions and 1 deletions
|
|
@ -2088,13 +2088,15 @@ Session::actual_speed() const
|
|||
void
|
||||
Session::flush_cue_recording ()
|
||||
{
|
||||
if (!TriggerBox::cue_records.read_space()) {
|
||||
/* if the user canceled cue recording before stopping *and* didn't record any cues, leave cues unchanged */
|
||||
if (!TriggerBox::cue_recording() && !TriggerBox::cue_records.read_space()) {
|
||||
return;
|
||||
}
|
||||
|
||||
CueRecord cr;
|
||||
TempoMap::SharedPtr tmap (TempoMap::use());
|
||||
|
||||
/* we will delete the cues we rolled over, even if the user never wrote any new cues (??)*/
|
||||
_locations->clear_cue_markers (_last_roll_location, _transport_sample);
|
||||
|
||||
while (TriggerBox::cue_records.read (&cr, 1) == 1) {
|
||||
|
|
@ -2115,4 +2117,7 @@ Session::flush_cue_recording ()
|
|||
|
||||
/* scheduled sync of cue markers in RT thread */
|
||||
cue_marker_change (0);
|
||||
|
||||
/* disarm the cues from recording when we finish our pass */
|
||||
TriggerBox::set_cue_recording(false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue