summaryrefslogtreecommitdiff
path: root/src/audio/audio_decoder.cpp
diff options
context:
space:
mode:
authorailurux <ailuruxx@gmail.com>2024-02-16 10:57:47 +1100
committerailurux <ailuruxx@gmail.com>2024-02-16 10:57:47 +1100
commita49d754da6c293445be16ac643d10849c01ea96b (patch)
tree2a22d040d3b6f9dda88d2642144f342e09b31026 /src/audio/audio_decoder.cpp
parent62f6179abe24339c2e5b7350528afbcad4c52067 (diff)
downloadtangara-fw-a49d754da6c293445be16ac643d10849c01ea96b.tar.gz
Seeking working with hardcoded event, wav only
Diffstat (limited to 'src/audio/audio_decoder.cpp')
-rw-r--r--src/audio/audio_decoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/audio_decoder.cpp b/src/audio/audio_decoder.cpp
index 02cf27e3..eaa9ff9c 100644
--- a/src/audio/audio_decoder.cpp
+++ b/src/audio/audio_decoder.cpp
@@ -155,7 +155,7 @@ auto Decoder::BeginDecoding(std::shared_ptr<TaggedStream> stream) -> bool {
.bitrate_kbps = open_res->sample_rate_hz,
.encoding = stream->type(),
});
- timer_.reset(new Timer(tags, open_res.value()));
+ timer_.reset(new Timer(tags, open_res.value(), stream->Offset()));
// TODO: How does *this?* need to change?
PlaybackUpdate ev{.seconds_elapsed = stream->Offset(), .track = tags};