pub struct PlayOptions {
pub volume: f32,
pub looped: bool,
pub fade_in_ms: f32,
pub tag: Option<Value>,
}Expand description
How to start a playback (Core::play).
Fields§
§volume: f32Linear amplitude, 0..1 (1 = as recorded).
looped: bool§fade_in_ms: f32Fade in from silence over this many ms (0 = none).
tag: Option<Value>Carried back in the ended event; None = no event.
Implementations§
Trait Implementations§
Source§impl Clone for PlayOptions
impl Clone for PlayOptions
Source§impl Debug for PlayOptions
impl Debug for PlayOptions
Source§impl Default for PlayOptions
impl Default for PlayOptions
Source§impl PartialEq for PlayOptions
impl PartialEq for PlayOptions
impl StructuralPartialEq for PlayOptions
Auto Trait Implementations§
impl Freeze for PlayOptions
impl RefUnwindSafe for PlayOptions
impl Send for PlayOptions
impl Sync for PlayOptions
impl Unpin for PlayOptions
impl UnsafeUnpin for PlayOptions
impl UnwindSafe for PlayOptions
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