From b2f0e6d3a45083b04e85feccb3f7742a35d6e41f Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 29 Feb 2024 16:30:17 +1100 Subject: [PATCH] Clear the drain buffer also when seeking --- src/audio/audio_fsm.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); }