From 266310d9c2a17822fd7462a19a39f4ded264fcaf Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 18 Jun 2021 18:43:08 -0400 Subject: [PATCH] Fixes automatic flushing for non-1/1-clocked actors. --- ClockReceiver/JustInTime.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ClockReceiver/JustInTime.hpp b/ClockReceiver/JustInTime.hpp index 8d709559c..4f7c02018 100644 --- a/ClockReceiver/JustInTime.hpp +++ b/ClockReceiver/JustInTime.hpp @@ -103,9 +103,9 @@ template ::value) { - time_until_event_ -= rhs; + time_until_event_ -= rhs * multiplier; if(time_until_event_ <= LocalTimeScale(0)) { - time_overrun_ = time_until_event_; + time_overrun_ = time_until_event_ / divider; flush(); update_sequence_point(); return true; @@ -185,7 +185,7 @@ template ::value) { - time_until_event_ = object_.get_next_sequence_point(); + time_until_event_ = object_.get_next_sequence_point() * divider; assert(time_until_event_ > LocalTimeScale(0)); } }