Struct sdl2_mixer::Group
[−]
[src]
pub struct Group(_);
Sound effect channel grouping.
Methods
impl Group
[src]
fn add_channels_range(self, from: isize, to: isize) -> isize
Add channels starting at from up through to to group tag, or reset it's group to the default group tag (-1).
fn add_channel(self, Channel: Channel) -> bool
Add which channel to group tag, or reset it's group to the default group tag
fn count(self) -> isize
Count the number of channels in group
fn find_available(self) -> Option<Channel>
Find the first available (not playing) channel in group
fn find_oldest(self) -> Option<Channel>
Find the oldest actively playing channel in group
fn find_newest(self) -> Option<Channel>
Find the newest, most recently started, actively playing channel in group.
fn fade_out(self, ms: isize) -> isize
Gradually fade out channels in group over some milliseconds starting from now. Returns the number of channels set to fade out.
fn halt(self)
Halt playback on all channels in group.
Trait Implementations
impl Copy for Group
[src]
impl Clone for Group
[src]
fn clone(&self) -> Group
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more