Skip to content

Commit

Permalink
Fix stop music
Browse files Browse the repository at this point in the history
  • Loading branch information
DantSu committed Oct 9, 2024
1 parent 826232a commit 06623d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/storyTeller/stories_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -529,6 +530,7 @@ void stories_readStage(void) {
stories_autosleep_unlock();
}
} else {
audio_free_music();
stories_autosleep_unlock();
}

Expand Down

0 comments on commit 06623d4

Please sign in to comment.