pub enum LoopMode {
OneShot,
Forward,
PingPong,
}Expand description
Loop behaviour for SamplePlayer.
Variants§
OneShot
Play once from start to end, then output silence.
Forward
Loop forward when reaching the end position.
PingPong
Reverse direction at loop boundaries (bouncing loop).
Trait Implementations§
impl Copy for LoopMode
impl StructuralPartialEq for LoopMode
Auto Trait Implementations§
impl Freeze for LoopMode
impl RefUnwindSafe for LoopMode
impl Send for LoopMode
impl Sync for LoopMode
impl Unpin for LoopMode
impl UnsafeUnpin for LoopMode
impl UnwindSafe for LoopMode
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