pub struct Mixer { /* private fields */ }Expand description
The audio thread’s half of the mixer. See the module documentation.
Implementations§
Source§impl Mixer
impl Mixer
Sourcepub fn physical_voices(&self) -> usize
pub fn physical_voices(&self) -> usize
Latest snapshot of selected, unpaused physical voices, including audible tails.
Sourcepub fn virtual_voice_count(&self) -> usize
pub fn virtual_voice_count(&self) -> usize
Latest snapshot of advancing virtual voices; paused voices are separate.
Source§impl Mixer
impl Mixer
pub fn new(config: MixerConfig) -> Result<(Mixer, MixerHandle)>
pub fn sample_rate(&self) -> u32
pub fn channels(&self) -> usize
Sourcepub fn active_voices(&self) -> usize
pub fn active_voices(&self) -> usize
All retained voices, including virtual, paused and fading-out voices.
Auto Trait Implementations§
impl !RefUnwindSafe for Mixer
impl !Sync for Mixer
impl !UnwindSafe for Mixer
impl Freeze for Mixer
impl Send for Mixer
impl Unpin for Mixer
impl UnsafeUnpin for Mixer
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