pub type AudioFillCallback = dyn Fn(&mut [f32], u32, u16) -> usize + Send + Sync;Expand description
Callback function type for filling audio samples
The callback receives:
buffer: mutable slice to fill with audio samplessample_rate: target sample rate for the sampleschannels: number of audio channels
Returns the number of frames actually filled (frames = samples / channels)