audio-blocks
★ 11Real-time safe abstractions over audio data with support for all common layouts.
use audio_blocks::*;
// Create a stereo block with 512 samples per channel
let mut block = Planar::<f32>::new(2, 512);
// Process each channel independently
for channel in block.channels_mut() {
for sample in channel.iter_mut() {
*sample *= 0.5; // apply gain
}
}