Struct rich_sdl2_rust::mixer::device::MixDevice
source · pub struct MixDevice<'mix> { /* private fields */ }
Expand description
An audio device built from MixDeviceBuilder
.
Implementations§
source§impl MixDevice<'_>
impl MixDevice<'_>
sourcepub fn chunk_decoders(&self) -> Vec<Cow<'_, str>>
pub fn chunk_decoders(&self) -> Vec<Cow<'_, str>>
Returns the decoder names for the mix chunk.
sourcepub fn music_decoders(&self) -> Vec<Cow<'_, str>>
pub fn music_decoders(&self) -> Vec<Cow<'_, str>>
Returns the decoder names for the mix music.
sourcepub fn playing_channels(&self) -> usize
pub fn playing_channels(&self) -> usize
Returns the numbers of playing channels.
sourcepub fn new_channels(&self, len: usize) -> ChannelGroup<'_>
pub fn new_channels(&self, len: usize) -> ChannelGroup<'_>
Constructs the channel group.
sourcepub fn attach_post_effect(&self, effect: Effect<'_>)
pub fn attach_post_effect(&self, effect: Effect<'_>)
Attaches the effect to the special, post effect channel.
sourcepub fn detach_all_post_effect(&self)
pub fn detach_all_post_effect(&self)
Detaches all the effect from the special, post effect channel.
Trait Implementations§
Auto Trait Implementations§
impl<'mix> !RefUnwindSafe for MixDevice<'mix>
impl<'mix> !Send for MixDevice<'mix>
impl<'mix> !Sync for MixDevice<'mix>
impl<'mix> Unpin for MixDevice<'mix>
impl<'mix> !UnwindSafe for MixDevice<'mix>
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