Skip to content

Length in ms calculated incorrectly #20

@hgeddon

Description

@hgeddon

Hi there, I noticed that the length in ms is calculated incorrectly in this library, the issue seems to be not subtracting the header bytes from the chunk_size.
So all you need to do is: info.header.chunk_size - 36 before dividing it by num_channels and bits_per_sample and the result will be correct.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions