Function rodio::dynamic_mixer::mixer[][src]

pub fn mixer<S>(
    channels: u16,
    sample_rate: u32
) -> (Arc<DynamicMixerController<S>>, DynamicMixer<S>) where
    S: Sample + Send + 'static, 

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.