summaryrefslogtreecommitdiff
path: root/src/tangara/audio/audio_fsm.cpp
diff options
context:
space:
mode:
authorailurux <ailurux@noreply.codeberg.org>2025-04-14 07:22:54 +0000
committerailurux <ailurux@noreply.codeberg.org>2025-04-14 07:22:54 +0000
commit20ccf51d2ba386d960e60b993ceaa02e3bda557c (patch)
tree02dad507ccf485133f4c5eaca23593790ea5f071 /src/tangara/audio/audio_fsm.cpp
parent3804b2e2e89ceb368a92b5ecac4b9273f6c878fa (diff)
parentc4c6c9df7bb5721ed695667a7f6b6b918330e2e8 (diff)
downloadtangara-fw-20ccf51d2ba386d960e60b993ceaa02e3bda557c.tar.gz
Merge pull request 'fix premature pause at end of last track of queue' (#317) from Be.ing/tangara-fw:premature_pause into main
Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/317
Diffstat (limited to 'src/tangara/audio/audio_fsm.cpp')
-rw-r--r--src/tangara/audio/audio_fsm.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tangara/audio/audio_fsm.cpp b/src/tangara/audio/audio_fsm.cpp
index 1e8e0cf6..7c1b010d 100644
--- a/src/tangara/audio/audio_fsm.cpp
+++ b/src/tangara/audio/audio_fsm.cpp
@@ -148,9 +148,7 @@ void AudioState::react(const QueueUpdate& ev) {
void AudioState::react(const SetTrack& ev) {
if (std::holds_alternative<std::monostate>(ev.new_track)) {
- ESP_LOGI(kTag, "playback finished, awaiting drain");
sDecoder->open({});
- sStreamCues.clear();
return;
}
@@ -212,6 +210,7 @@ void AudioState::react(const TtsPlaybackChanged& ev) {
}
void AudioState::react(const internal::DecodingFinished& ev) {
+ ESP_LOGD(kTag, "end of file decoded; awaiting playback of buffered audio");
// If we just finished playing whatever's at the front of the queue, then we
// need to advanve and start playing the next one ASAP in order to continue
// gaplessly.