Skip to content

AudioFrame with a small rate can result in a size of zero #200

@microbit-carlos

Description

@microbit-carlos
>>> len(AudioFrame(1000, 1))
32
>>> len(AudioFrame(999, 1))
0
>>> len(AudioFrame(1, 1))
0
>>> 

Likely the integer division flooring (well, rounding towards zero) from:

size = args[ARG_duration].u_int * rate / 1000;

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions