Skip to content

Converting AudioSampleFormats for rendering #232

@chcunningham

Description

@chcunningham

Following discussion in #179 (comment) we resolved to expose more audio sample formats. This has the benefit of potentially using less memory (vs always float32) and does less throw away conversion.

But, for decoding -> rendering scenarios, this will sometimes mean that apps need to take an additional step to convert, as WebAudio's AudioWorklet still only supports float32 planar.

I propose we offer helper method. Something like
AudioData.getAsPlanarFloat32() -> returns an ArrayBuffer

@padenot WDYT?

Metadata

Metadata

Assignees

No one assigned

    Labels

    extensionInterface changes that extend without breaking.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions