pub struct AudioMix { /* private fields */ }
Expand description
Representation of the volume mix for a channel.
Implementations§
source§impl AudioMix
impl AudioMix
sourcepub fn as_raw_mut(&mut self) -> &mut [f32; 12]
pub fn as_raw_mut(&mut self) -> &mut [f32; 12]
Returns a mutable reference to the raw data.
sourcepub fn front(&self) -> (f32, f32)
pub fn front(&self) -> (f32, f32)
Returns the values set for the “front” volume mix (left and right channel).
sourcepub fn back(&self) -> (f32, f32)
pub fn back(&self) -> (f32, f32)
Returns the values set for the “back” volume mix (left and right channel).
sourcepub fn aux_front(&self, id: AuxDevice) -> (f32, f32)
pub fn aux_front(&self, id: AuxDevice) -> (f32, f32)
Returns the values set for the “front” volume mix (left and right channel) for the specified auxiliary output device (either 0 or 1).
sourcepub fn aux_back(&self, id: AuxDevice) -> (f32, f32)
pub fn aux_back(&self, id: AuxDevice) -> (f32, f32)
Returns the values set for the “back” volume mix (left and right channel) for the specified auxiliary output device (either 0 or 1).
sourcepub fn set_aux_front(&mut self, left: f32, right: f32, id: AuxDevice)
pub fn set_aux_front(&mut self, left: f32, right: f32, id: AuxDevice)
sourcepub fn set_aux_back(&mut self, left: f32, right: f32, id: AuxDevice)
pub fn set_aux_back(&mut self, left: f32, right: f32, id: AuxDevice)
Trait Implementations§
impl Copy for AudioMix
impl StructuralPartialEq for AudioMix
Auto Trait Implementations§
impl RefUnwindSafe for AudioMix
impl Send for AudioMix
impl Sync for AudioMix
impl Unpin for AudioMix
impl UnwindSafe for AudioMix
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more