[−][src]Struct sdl2::mixer::Group
Sound effect channel grouping.
Methods
impl Group
[src]
pub fn add_channels_range(self, from: i32, to: i32) -> i32
[src]
Add channels starting at from up through to to group tag, or reset it's group to the default group tag (-1).
pub fn add_channel(self, Channel: Channel) -> bool
[src]
Add which channel to group tag, or reset it's group to the default group tag
pub fn count(self) -> i32
[src]
Count the number of channels in group
pub fn find_available(self) -> Option<Channel>
[src]
Find the first available (not playing) channel in group
pub fn find_oldest(self) -> Option<Channel>
[src]
Find the oldest actively playing channel in group
pub fn find_newest(self) -> Option<Channel>
[src]
Find the newest, most recently started, actively playing channel in group.
pub fn fade_out(self, ms: i32) -> i32
[src]
Gradually fade out channels in group over some milliseconds starting from now. Returns the number of channels set to fade out.
pub fn halt(self)
[src]
Halt playback on all channels in group.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnwindSafe for Group
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,