From c143b24acf26fdebc6eb965c625430521d4a0c21 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 30 Apr 2024 18:03:32 +1000 Subject: [PATCH] codal_port/modaudio: Make audio.stop() also stop sound expressions. Fixes issue #180. Signed-off-by: Damien George --- src/codal_port/modaudio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/codal_port/modaudio.c b/src/codal_port/modaudio.c index 5c292bc..6a4497f 100644 --- a/src/codal_port/modaudio.c +++ b/src/codal_port/modaudio.c @@ -54,6 +54,7 @@ static inline bool audio_is_running(void) { void microbit_audio_stop(void) { audio_source_iter = NULL; + microbit_hal_audio_stop_expression(); } STATIC void audio_buffer_ready(void) {