rust_audio_api/types.rs
1pub const AUDIO_UNIT_SIZE: usize = 64;
2
3/// Represents the minimum unit processed per pull in the audio graph (64 frames, each a stereo f32)
4pub type AudioUnit = [[f32; 2]; AUDIO_UNIT_SIZE];
5
6/// Creates a silent (all zeros) AudioUnit
7pub fn empty_audio_unit() -> AudioUnit {
8 [[0.0; 2]; AUDIO_UNIT_SIZE]
9}