audio-channel-buffer

Crates.ioaudio-channel-buffer
lib.rsaudio-channel-buffer
version0.2.4
created_at2025-02-20 00:42:58.701267+00
updated_at2025-09-22 17:04:41.432572+00
descriptionA collection of memory-efficient audio buffer types for realtime applications
homepage
repositoryhttps://codeberg.org/BillyDM/audio-channel-buffer
max_upload_size
id1562031
size95,287
Billy Messenger (BillyDM)

documentation

https://docs.rs/audio-channel-buffer

README

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.

Commit count: 0

cargo fmt