pub struct AudioMixerOptions {
pub sample_rate: u32,
pub channels: u16,
}Expand description
Construction-time options for AudioMixer::new — the mixer’s fixed
output format. Every input is resampled to match this on the way in
(see InputBuffer::push); the mixer never adapts to whatever an
input happens to produce.
Fields§
§sample_rate: u32§channels: u16Trait Implementations§
Source§impl Clone for AudioMixerOptions
impl Clone for AudioMixerOptions
Source§fn clone(&self) -> AudioMixerOptions
fn clone(&self) -> AudioMixerOptions
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 moreimpl Copy for AudioMixerOptions
Auto Trait Implementations§
impl Freeze for AudioMixerOptions
impl RefUnwindSafe for AudioMixerOptions
impl Send for AudioMixerOptions
impl Sync for AudioMixerOptions
impl Unpin for AudioMixerOptions
impl UnsafeUnpin for AudioMixerOptions
impl UnwindSafe for AudioMixerOptions
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