Skip to content

buffer struct? #168

Open
Open
@Be-ing

Description

@Be-ing

I have been looking through the dasp documentation and unless I'm missing something, there doesn't seem to be a struct for a buffer of audio samples? The dasp::slice module has functions for working with simple slices and dasp::signal::Signal trait has lots of neat tools, but it seems to be primarily designed for working with signal generators that can generate data infinitely. Unfortunately it seems that every crate is inventing their own solution right now, for example:

There's also the audio crate which has structs for audio buffers but doesn't have many tools for working with them like dasp::signal::Signal implements. Ideally what I'd want is something like the structs in the audio crate or symphonia_core::audio that provides an interface like dasp::signal::Signal which makes it easy to iterate over each frame in a buffer, then each channel so it would be easy to write code that is generic with regards to the sample layout (interleaved versus planar) and number of channels. It would be great to have one solution widely used in audio crates so data can be passed between them easily without consumers needing to learn the idiosyncratic API of every crate.

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