Struct rich_sdl2_rust::mixer::device::MixDeviceBuilder
source · pub struct MixDeviceBuilder { /* private fields */ }
Expand description
A builder for MixDevice
.
Implementations§
source§impl MixDeviceBuilder
impl MixDeviceBuilder
sourcepub fn format(&mut self, format: AudioFormat) -> &mut Self
pub fn format(&mut self, format: AudioFormat) -> &mut Self
Changes the audio format.
sourcepub fn chunk_size(&mut self, chunk_size: u32) -> &mut Self
pub fn chunk_size(&mut self, chunk_size: u32) -> &mut Self
Changes the output chunk size. If it is too low, the sound may skip.
Trait Implementations§
source§impl Clone for MixDeviceBuilder
impl Clone for MixDeviceBuilder
source§fn clone(&self) -> MixDeviceBuilder
fn clone(&self) -> MixDeviceBuilder
Returns a copy of the value. Read more
1.0.0 · 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 MixDeviceBuilder
impl Debug for MixDeviceBuilder
Auto Trait Implementations§
impl RefUnwindSafe for MixDeviceBuilder
impl Send for MixDeviceBuilder
impl Sync for MixDeviceBuilder
impl Unpin for MixDeviceBuilder
impl UnwindSafe for MixDeviceBuilder
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