summaryrefslogtreecommitdiff
path: root/src/audio/audio_fsm.cpp
diff options
context:
space:
mode:
authorailurux <ailuruxx@gmail.com>2024-02-15 16:12:07 +1100
committerailurux <ailuruxx@gmail.com>2024-02-15 16:12:07 +1100
commit62f6179abe24339c2e5b7350528afbcad4c52067 (patch)
treed14f0b35ef601d0877ced507c5560236da666218 /src/audio/audio_fsm.cpp
parente466522c25758670da335195d60a5d599ed56177 (diff)
downloadtangara-fw-62f6179abe24339c2e5b7350528afbcad4c52067.tar.gz
Added offset for track seeking, wav impl. only rn
Diffstat (limited to 'src/audio/audio_fsm.cpp')
-rw-r--r--src/audio/audio_fsm.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/audio/audio_fsm.cpp b/src/audio/audio_fsm.cpp
index ba6e5ffe..c67cfc7a 100644
--- a/src/audio/audio_fsm.cpp
+++ b/src/audio/audio_fsm.cpp
@@ -244,11 +244,19 @@ void Uninitialised::react(const system_fsm::BootComplete& ev) {
}
void Standby::react(const PlayFile& ev) {
- sFileSource->SetPath(ev.filename);
+ sFileSource->SetPath(ev.filename, 10);
}
void Playback::react(const PlayFile& ev) {
- sFileSource->SetPath(ev.filename);
+ sFileSource->SetPath(ev.filename, 15);
+}
+
+void Standby::react(const SeekFile& ev) {
+ sFileSource->SetPath(ev.filename, ev.offset);
+}
+
+void Playback::react(const SeekFile& ev) {
+ sFileSource->SetPath(ev.filename, ev.offset);
}
void Standby::react(const internal::InputFileOpened& ev) {