From fe05fba67941668fc0663da0962a03e366b1fc5f Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 30 Apr 2024 17:22:58 +1000 Subject: [PATCH] codal_port/modaudio: Fix typecode of AudioFrame buffer to be unsigned. Signed-off-by: Damien George --- src/codal_port/modaudio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codal_port/modaudio.c b/src/codal_port/modaudio.c index a7cbc12..c9416c5 100644 --- a/src/codal_port/modaudio.c +++ b/src/codal_port/modaudio.c @@ -380,7 +380,7 @@ static mp_int_t audio_frame_get_buffer(mp_obj_t self_in, mp_buffer_info_t *bufin microbit_audio_frame_obj_t *self = (microbit_audio_frame_obj_t *)self_in; bufinfo->buf = self->data; bufinfo->len = self->alloc_size; - bufinfo->typecode = 'b'; + bufinfo->typecode = 'B'; if (flags == MP_BUFFER_WRITE) { // Assume that writing to the buffer will make all data valid for playback. self->used_size = self->alloc_size;