pub enum Clip<S: Sdk> {
Sample {
sample: S::Sample,
rate: Cell<u32>,
},
File(FileClip<S>),
}Expand description
A sound the SDK holds, or a file player open on a track or a clip.
Variants§
Sample
A sound in memory, for the whole game.
File(FileClip<S>)
A file player, closed when this goes.
Trait Implementations§
Auto Trait Implementations§
impl<S> !Freeze for Clip<S>
impl<S> !RefUnwindSafe for Clip<S>
impl<S> !Sync for Clip<S>
impl<S> Send for Clip<S>
impl<S> Unpin for Clip<S>
impl<S> UnsafeUnpin for Clip<S>
impl<S> UnwindSafe for Clip<S>
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