Skip to content

Commit bfcef9b

Browse files
committed
codal_port/modaudio: Make AudioFrame constructor public.
Signed-off-by: Damien George <damien@micropython.org>
1 parent 403b7e6 commit bfcef9b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/codal_port/modaudio.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ static volatile bool audio_fetcher_scheduled;
5050
static size_t audio_raw_offset;
5151
static uint32_t audio_current_sound_level;
5252

53-
microbit_audio_frame_obj_t *microbit_audio_frame_make_new(size_t size);
54-
5553
static inline bool audio_is_running(void) {
5654
return audio_source_frame != NULL || audio_source_iter != MP_OBJ_NULL;
5755
}

src/codal_port/modaudio.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ void microbit_audio_play_source(mp_obj_t src, mp_obj_t pin_select, bool wait, ui
4444
void microbit_audio_stop(void);
4545
bool microbit_audio_is_playing(void);
4646

47+
microbit_audio_frame_obj_t *microbit_audio_frame_make_new(size_t size);
48+
4749
const char *microbit_soundeffect_get_sound_expr_data(mp_obj_t self_in);
4850

4951
#endif // MICROPY_INCLUDED_MICROBIT_MODAUDIO_H

0 commit comments

Comments
 (0)