[Replay] Seek to the exact time of an event

Timeline seeks only expose whole timer intervals, so jumping to an event could leave that event unprocessed until the next tick. Add an event-time seek that also applies events at the target timestamp.
This commit is contained in:
Lukas Brübach 2026-10-20 22:14:07 +02:00
parent 0fe4fd0d8c
commit b863a53b35
4 changed files with 52 additions and 13 deletions

View file

@ -41,10 +41,11 @@ class ReplayManager : public QObject
///< to rewind buffering
int currentEvent = 0; ///< current event's index
void skipToTime(int newTime, bool doRewindBuffering);
void handleBackwardsSkip(bool doRewindBuffering);
void skipToTime(int newTime, bool doRewindBuffering, bool includeEventsAtTime = false);
void handleBackwardsSkip(bool doRewindBuffering, bool includeEventsAtTime = false);
void processRewind();
void processNewEvents(PlaybackMode playbackMode);
void processRewind(bool includeEventsAtTime);
void processNewEvents(PlaybackMode playbackMode, bool includeEventsAtTime = false);
void handleSkipEmptySection();
private slots:
@ -74,6 +75,7 @@ public slots:
void startReplay();
void stopReplay();
void setTime(int time);
void setTimeForEvent(int eventIndex);
void skipByAmount(int amount); // use a negative amount to skip backwards
signals: