diff options
| author | ailurux <ailuruxx@gmail.com> | 2024-02-16 12:55:11 +1100 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2024-02-16 12:55:11 +1100 |
| commit | 665679b8854d34c13d8eb92167aa8a4691619d8b (patch) | |
| tree | dd2edb34f09f198357efb1e0a7e6f5e81443c022 /src/audio/audio_fsm.cpp | |
| parent | a49d754da6c293445be16ac643d10849c01ea96b (diff) | |
| download | tangara-fw-665679b8854d34c13d8eb92167aa8a4691619d8b.tar.gz | |
WIP: seeking in lua example
Diffstat (limited to 'src/audio/audio_fsm.cpp')
| -rw-r--r-- | src/audio/audio_fsm.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/audio/audio_fsm.cpp b/src/audio/audio_fsm.cpp index 75e3c24a..0e213b6e 100644 --- a/src/audio/audio_fsm.cpp +++ b/src/audio/audio_fsm.cpp @@ -246,14 +246,16 @@ void Uninitialised::react(const system_fsm::BootComplete& ev) { void Standby::react(const PlayFile& ev) { sCurrentTrack = 0; sIsPlaybackAllowed = true; - sFileSource->SetPath(ev.filename, 10); + sFileSource->SetPath(ev.filename); } void Playback::react(const PlayFile& ev) { - sFileSource->SetPath(ev.filename, 10); + sFileSource->SetPath(ev.filename); } void Standby::react(const SeekFile& ev) { + sCurrentTrack = 0; + sIsPlaybackAllowed = true; sFileSource->SetPath(ev.filename, ev.offset); } |
