summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-02-29 16:30:17 +1100
committerjacqueline <me@jacqueline.id.au>2024-02-29 16:30:17 +1100
commitb2f0e6d3a45083b04e85feccb3f7742a35d6e41f (patch)
treec860f266116ca3a6fdced6bce1801081dca85ff0 /src
parentaa87c13799f5d71773b7c73135006acb592182d0 (diff)
downloadtangara-fw-b2f0e6d3a45083b04e85feccb3f7742a35d6e41f.tar.gz
Clear the drain buffer also when seeking
Diffstat (limited to 'src')
-rw-r--r--src/audio/audio_fsm.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/audio/audio_fsm.cpp b/src/audio/audio_fsm.cpp
index 50f18452..d4272c3d 100644
--- a/src/audio/audio_fsm.cpp
+++ b/src/audio/audio_fsm.cpp
@@ -290,10 +290,12 @@ void Playback::react(const PlayFile& ev) {
}
void Standby::react(const SeekFile& ev) {
+ clearDrainBuffer();
sFileSource->SetPath(ev.filename, ev.offset);
}
void Playback::react(const SeekFile& ev) {
+ clearDrainBuffer();
sFileSource->SetPath(ev.filename, ev.offset);
}