diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-02-29 16:30:17 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-02-29 16:30:17 +1100 |
| commit | b2f0e6d3a45083b04e85feccb3f7742a35d6e41f (patch) | |
| tree | c860f266116ca3a6fdced6bce1801081dca85ff0 /src/audio | |
| parent | aa87c13799f5d71773b7c73135006acb592182d0 (diff) | |
| download | tangara-fw-b2f0e6d3a45083b04e85feccb3f7742a35d6e41f.tar.gz | |
Clear the drain buffer also when seeking
Diffstat (limited to 'src/audio')
| -rw-r--r-- | src/audio/audio_fsm.cpp | 2 |
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); } |
