# Audio Channel Buffer
[](https://docs.rs/audio-channel-buffer)
[](https://crates.io/crates/audio-channel-buffer)
[](https://codeberg.org/BillyDM/audio-channel-buffer/blob/main/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.