rubato icon indicating copy to clipboard operation
rubato copied to clipboard

Provide interface for interleaved resampling

Open Secretmapper opened this issue 3 years ago • 7 comments

It would be great if we can provide options for input/output formats (interleave/deinterleaved).

This can be done in userland (interleaving/deinterleaving before hand). But by integrating it nothing new has to be allocated/processing step needed and only the iterating logic needs to change inside the synchro process.

Secretmapper avatar Jul 05 '22 10:07 Secretmapper

IMO this would be best handled by traits shared between audio crates that are generic over interleaved/deinterleaved audio buffers: https://github.com/udoprog/audio/issues/3

Be-ing avatar Jul 05 '22 16:07 Be-ing

I agree with @Be-ing here. It would be nice to be able to handle interleaved data, but I don't want to add everything needed to be generic over data alignment in this lib. The "audio" crate looks like it could be a nice solution here.

HEnquist avatar Jul 06 '22 14:07 HEnquist

https://github.com/HEnquist/rubato/issues/71#issuecomment-1780053242

HEnquist avatar Oct 25 '23 21:10 HEnquist