#real-time #buffer #dsp #no-alloc

no-std audio-channel-buffer

A collection of memory-efficient audio buffer types for realtime applications

3 unstable releases

new 0.2.1 Feb 20, 2025
0.2.0 Feb 20, 2025
0.1.0 Feb 20, 2025

#566 in Audio

35 downloads per month

MIT license

87KB
1.5K SLoC

Audio Channel Buffer

Documentation Crates.io License

A collection of memory-efficient audio buffer types for realtime applications. These may have better cache efficiency and take up less memory than Vec<Vec<T>>.

This library can be used with or without the standard library and with or without an allocator.

Note, this library is meant to be used when the number of frames (samples in a single channel of audio) are not known at compile-time. If the number of frames are known at compile-time, then you can simply use Vec<[T; FRAMES]> or [[T: FRAMES]; CHANNELS] instead to get the same effect.

This crate makes extensive use of unsafe code. I'm planning on adding tests with Miri to verify the safety, but I haven't gotten around to that yet.

Dependencies

~17KB