Function mixer
pub fn mixer<S>(
channels: u16,
sample_rate: u32,
) -> (Arc<DynamicMixerController<S>>, DynamicMixer<S>) ⓘ
Available on crate feature
dep_rodio
only.Expand description
Builds a new mixer.
You can choose the characteristics of the output thanks to this constructor. All the sounds added to the mixer will be converted to these values.
After creating a mixer, you can add new sounds with the controller.