From 9a4af7e0ec16d662d301c1ace46b26316e0dd7d2 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Fri, 20 Jan 2023 15:39:06 +0100 Subject: [PATCH] Add offset setter in streams --- src/emu/emu_stream.c | 6 ++++++ src/emu/emu_stream.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/emu/emu_stream.c b/src/emu/emu_stream.c index 9ea0b05..ba5442e 100644 --- a/src/emu/emu_stream.c +++ b/src/emu/emu_stream.c @@ -130,3 +130,9 @@ emu_stream_data_get(struct emu_stream *stream) { return stream->data; } + +void +emu_stream_clkoff(struct emu_stream *stream, int64_t clkoff) +{ + stream->clock_offset = clkoff; +} diff --git a/src/emu/emu_stream.h b/src/emu/emu_stream.h index 05f4810..9d8a81b 100644 --- a/src/emu/emu_stream.h +++ b/src/emu/emu_stream.h @@ -35,6 +35,8 @@ struct emu_stream { int emu_stream_load(struct emu_stream *stream, const char *tracedir, const char *relpath); +void emu_stream_clkoff(struct emu_stream *stream, int64_t clock_offset); + void emu_stream_data_set(struct emu_stream *stream, void *data); void *emu_stream_data_get(struct emu_stream *stream);