13
0

another instance where we should use timecnt_t::set_time_domain()

This commit is contained in:
Paul Davis 2023-09-18 21:10:30 -06:00
parent 727b666c18
commit d7bbc9078f

View File

@ -530,14 +530,9 @@ Region::set_length_internal (timecnt_t const & len)
*/
if (td != len.time_domain()) {
switch (td) {
case Temporal::AudioTime:
_length = timecnt_t::from_superclock (len.superclocks(), _length.val().position());
break;
default:
_length = timecnt_t::from_ticks (len.ticks(), _length.val().position());
break;
}
timecnt_t l = _length.val();
l.set_time_domain (td);
_length = l;
return;
}
}