Skip to content

Commit

Permalink
codal_port/modaudio: Make audio.stop() also stop sound expressions.
Browse files Browse the repository at this point in the history
Fixes issue #180.

Signed-off-by: Damien George <[email protected]>
  • Loading branch information
dpgeorge committed Apr 30, 2024
1 parent f1a4647 commit c143b24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/codal_port/modaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c143b24

Please sign in to comment.