Function rodio::dynamic_mixer::mixer

source ยท
pub fn mixer<S>(
    channels: u16,
    sample_rate: u32,
) -> (Arc<DynamicMixerController<S>>, DynamicMixer<S>)
where S: Sample + Send + 'static,
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.