Skip to content

Playing an empty AudioFrame never returns #223

Description

@microbit-carlos

This in the REPL never returns until Ctrl+C is sent:

>>> audio.play(audio.AudioFrame())

But as soon as something else larger is played (like Sound.HAPPY) it does work until the next power cycle.

Might be related to increasing AUDIO_OUTPUT_BUFFER_SIZE to 64, as audio.play(audio.AudioTrack(bytearray(63))) doesn't return either, but audio.play(audio.AudioTrack(bytearray(64))) does.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions