13
0

triggerbox: fix typo that caused crash when handling unstretched audio

This commit is contained in:
Paul Davis 2021-12-16 10:37:56 -07:00
parent 39d9c39452
commit f7792cb425

View File

@ -573,7 +573,7 @@ AudioTrigger::set_expected_end_sample (Temporal::TempoMap::SharedPtr const & tma
if (stretching()) {
expected_end_sample = tmap->sample_at (tmap->bbt_walk(transition_bbt, Temporal::BBT_Offset (round (_barcnt), 0, 0)));
} else {
expected_end_sample = transition_samples = usable_length;
expected_end_sample = transition_samples + usable_length;
}
}