[][src]Struct sdl2::mixer::Group

pub struct Group(pub i32);

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

impl Clone for Group[src]

impl Copy for Group[src]

impl Default for Group[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.