#[repr(C)]pub enum DelayType {
EndMS = 0,
DSPClockStart = 1,
DSPClockEnd = 2,
DSPClockPause = 3,
Max = 4,
ForceInt = 65_536,
}
Expand description
Types of delay that can be used with
Channel::set_delay
/
Channel::get_delay
.
Variants§
EndMS = 0
Delay at the end of the sound in milliseconds. Use delayhi only.
Channel::is_playing
will remain true until
this delay has passed even though the sound itself has stopped playing.
DSPClockStart = 1
Time the sound started if Channel::get_delay
is used, or if Channel::set_delay
is used,
the sound will delay playing until this exact tick.
DSPClockEnd = 2
Time the sound should end. If this is non-zero, the channel will go silent at this exact tick.
DSPClockPause = 3
Time the sound should pause. If this is non-zero, the channel will pause at this exact tick.
Max = 4
Maximum number of tag datatypes supported.
ForceInt = 65_536
Makes sure this enum is signed 32bit.
Trait Implementations§
Source§impl PartialOrd for DelayType
impl PartialOrd for DelayType
impl Copy for DelayType
impl StructuralPartialEq for DelayType
Auto Trait Implementations§
impl Freeze for DelayType
impl RefUnwindSafe for DelayType
impl Send for DelayType
impl Sync for DelayType
impl Unpin for DelayType
impl UnwindSafe for DelayType
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