Skip to content

Commit c143b24

Browse files
committed
codal_port/modaudio: Make audio.stop() also stop sound expressions.
Fixes issue #180. Signed-off-by: Damien George <damien@micropython.org>
1 parent f1a4647 commit c143b24

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/codal_port/modaudio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ static inline bool audio_is_running(void) {
5454

5555
void microbit_audio_stop(void) {
5656
audio_source_iter = NULL;
57+
microbit_hal_audio_stop_expression();
5758
}
5859

5960
STATIC void audio_buffer_ready(void) {

0 commit comments

Comments
 (0)