pub struct MixerConfig {
pub virtual_voices: Option<VirtualVoices>,
pub sample_rate: u32,
pub channels: usize,
pub max_voices: usize,
pub buses: Vec<String>,
pub queue: usize,
pub seed: u64,
pub space: Space2d,
pub listener: Listener,
pub spatial: SpatialConfig,
pub limiter: Option<MasterLimiter>,
}Fields§
§virtual_voices: Option<VirtualVoices>Opt into a bounded logical pool and physical selection. None preserves legacy admission/stealing and all default PCM.
sample_rate: u32The output’s sample rate. Default 48000.
channels: usizeOutput layout: 1 mono, 2 stereo, 4 quad, 6 5.1, 8 7.1. Default 2.
max_voices: usizeMost live physical voices, 1..=1024. Default 32. With virtualization disabled this is also the live admission limit. Stop fades can use eight extra slots.
buses: Vec<String>Named buses besides the master, such as music and effects.
queue: usizeCommands that can wait for the mixer, 1..=65536. Default 1024.
seed: u64Seed of the generator that draws each voice’s Variation. Default 0.
space: Space2dHow positions of voices become pans and gains.
listener: Listener§spatial: SpatialConfig§limiter: Option<MasterLimiter>A peak limiter on the master bus, off by default. Its look-ahead delays the
output, which MixerHandle::latency reports.
Trait Implementations§
Source§impl Clone for MixerConfig
impl Clone for MixerConfig
Source§fn clone(&self) -> MixerConfig
fn clone(&self) -> MixerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MixerConfig
impl Debug for MixerConfig
Auto Trait Implementations§
impl Freeze for MixerConfig
impl RefUnwindSafe for MixerConfig
impl Send for MixerConfig
impl Sync for MixerConfig
impl Unpin for MixerConfig
impl UnsafeUnpin for MixerConfig
impl UnwindSafe for MixerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more