From 06623d4a7985091024372efeb61ecc01fae8f0a0 Mon Sep 17 00:00:00 2001 From: Franck Alary Date: Wed, 9 Oct 2024 06:11:47 +0200 Subject: [PATCH] Fix stop music --- src/storyTeller/stories_reader.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/storyTeller/stories_reader.h b/src/storyTeller/stories_reader.h index cbfafa5b0..42273fdd9 100644 --- a/src/storyTeller/stories_reader.h +++ b/src/storyTeller/stories_reader.h @@ -505,6 +505,7 @@ void stories_readStage(void) { bool isAudioDefined = audioJson != NULL && cJSON_IsString(audioJson); if (!isAudioDefined && storyAutoplay) { + audio_free_music(); storyOkAction = false; storyScreenEnabled = false; callback_stories_autoplay(); @@ -529,6 +530,7 @@ void stories_readStage(void) { stories_autosleep_unlock(); } } else { + audio_free_music(); stories_autosleep_unlock(); }