AudioClock: make last_when public and use it instead of current_time

Having current_time as a public alias of the private last_when did not
add any clarity to the abstraction of last_time. A small step, but still
room for improvement.
This commit is contained in:
Mads Kiilerich 2022-11-14 15:52:15 +01:00
parent 498dac3bc8
commit 728e463d01
12 changed files with 33 additions and 40 deletions

View file

@ -668,7 +668,7 @@ void
ClockOption::save_clock_time ()
{
Timecode::Time TC;
_session->sample_to_timecode (_clock.current_time().samples(), TC, false, false);
_session->sample_to_timecode (_clock.last_when().samples(), TC, false, false);
_set (Timecode::timecode_format_time(TC));
}