pub struct Mixer {
pub listener: [f32; 3],
pub right: [f32; 3],
/* private fields */
}Fields§
§listener: [f32; 3]§right: [f32; 3]Implementations§
Source§impl Mixer
impl Mixer
pub fn new(sample_rate: u32, limit: usize) -> Option<Mixer>
Sourcepub fn play(
&mut self,
clip: Clip,
position: [f32; 3],
gain: f32,
looping: bool,
) -> bool
pub fn play( &mut self, clip: Clip, position: [f32; 3], gain: f32, looping: bool, ) -> bool
Validates manually constructed clips outside the audio callback. Samples must be finite and within [-1,1]; playback never grows the voice allocation.
pub fn active_voices(&self) -> usize
Auto Trait Implementations§
impl Freeze for Mixer
impl RefUnwindSafe for Mixer
impl Send for Mixer
impl Sync for Mixer
impl Unpin for Mixer
impl UnwindSafe 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