diff options
| author | ailurux <ailuruxx@gmail.com> | 2024-02-16 10:57:47 +1100 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2024-02-16 10:57:47 +1100 |
| commit | a49d754da6c293445be16ac643d10849c01ea96b (patch) | |
| tree | 2a22d040d3b6f9dda88d2642144f342e09b31026 /src/audio/audio_fsm.cpp | |
| parent | 62f6179abe24339c2e5b7350528afbcad4c52067 (diff) | |
| download | tangara-fw-a49d754da6c293445be16ac643d10849c01ea96b.tar.gz | |
Seeking working with hardcoded event, wav only
Diffstat (limited to 'src/audio/audio_fsm.cpp')
| -rw-r--r-- | src/audio/audio_fsm.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/audio/audio_fsm.cpp b/src/audio/audio_fsm.cpp index c67cfc7a..75e3c24a 100644 --- a/src/audio/audio_fsm.cpp +++ b/src/audio/audio_fsm.cpp @@ -244,11 +244,13 @@ void Uninitialised::react(const system_fsm::BootComplete& ev) { } void Standby::react(const PlayFile& ev) { + sCurrentTrack = 0; + sIsPlaybackAllowed = true; sFileSource->SetPath(ev.filename, 10); } void Playback::react(const PlayFile& ev) { - sFileSource->SetPath(ev.filename, 15); + sFileSource->SetPath(ev.filename, 10); } void Standby::react(const SeekFile& ev) { |
