mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-28 01:17:42 +01:00
Fix negated origin time in main clock
When selecting "Origin" for the clock, it is expected that it should work like "Absolute", except measuring from the selected Origin. Positions to the right of origin should be positive. However, recently, it got negated. As playback progressed, time got more and more negative. Fix that by negating again.
This commit is contained in:
parent
d23c506088
commit
6e9730ad6e
1 changed files with 1 additions and 1 deletions
|
|
@ -131,7 +131,7 @@ MainClock::set (timepos_t const & when, bool force)
|
|||
case DeltaOriginMarker:
|
||||
{
|
||||
Location* loc = AudioEngine::instance()->session()->locations()->clock_origin_location ();
|
||||
AudioClock::set_duration (when.distance (loc ? loc->start() : timepos_t (when.time_domain())), force);
|
||||
AudioClock::set_duration (-when.distance (loc ? loc->start() : timepos_t (when.time_domain())), force);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue