Struct sdl2::mixer::Group [−][src]
pub struct Group(pub i32);
Sound effect channel grouping.
Implementations
impl Group[src]
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 RefUnwindSafe for Groupimpl UnwindSafe for Group
impl UnwindSafe for Group