Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

buffer struct? #168

Open
Be-ing opened this issue Dec 13, 2021 · 0 comments
Open

buffer struct? #168

Be-ing opened this issue Dec 13, 2021 · 0 comments

Comments

@Be-ing
Copy link

Be-ing commented Dec 13, 2021

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant