#[repr(C)]pub enum SoundGroupBehavior {
Fail = 0,
Mute = 1,
StealLowest = 2,
Max = 3,
ForceInt = 65_536,
}
Expand description
These flags are used with
SoundGroup::set_max_audible_behavior
to determine what happens when more sounds are played than are specified with
SoundGroup::set_max_audible
.
Variants§
Fail = 0
Any sound played that puts the sound count over the
SoundGroup::set_max_audible
setting, will simply fail during Sound::play
.
Mute = 1
Any sound played that puts the sound count over the
SoundGroup::set_max_audible
setting, will be silent, then if another sound in the group stops the sound that was silent
before becomes audible again.
StealLowest = 2
Any sound played that puts the sound count over the
SoundGroup::set_max_audible
setting, will steal the quietest / least important sound playing in the group.
Max = 3
Maximum number of open state types.
ForceInt = 65_536
Makes sure this enum is signed 32bit.
Trait Implementations§
Source§impl Clone for SoundGroupBehavior
impl Clone for SoundGroupBehavior
Source§fn clone(&self) -> SoundGroupBehavior
fn clone(&self) -> SoundGroupBehavior
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SoundGroupBehavior
impl Debug for SoundGroupBehavior
Source§impl PartialEq for SoundGroupBehavior
impl PartialEq for SoundGroupBehavior
Source§impl PartialOrd for SoundGroupBehavior
impl PartialOrd for SoundGroupBehavior
impl Copy for SoundGroupBehavior
impl StructuralPartialEq for SoundGroupBehavior
Auto Trait Implementations§
impl Freeze for SoundGroupBehavior
impl RefUnwindSafe for SoundGroupBehavior
impl Send for SoundGroupBehavior
impl Sync for SoundGroupBehavior
impl Unpin for SoundGroupBehavior
impl UnwindSafe for SoundGroupBehavior
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