pub struct PlayParams {
pub offset: Duration,
pub volume: f32,
pub pitch: f32,
pub looping: Option<bool>,
}Expand description
How a channel starts (Device::Play’s time and floats).
Fields§
§offset: DurationStart time, wrapped into the sound.
volume: f32The volume, from 0 to 1.
pitch: f32Semitones.
looping: Option<bool>Defaults to the sound’s own loop flag.
Trait Implementations§
Source§impl Clone for PlayParams
impl Clone for PlayParams
Source§fn clone(&self) -> PlayParams
fn clone(&self) -> PlayParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PlayParams
Source§impl Debug for PlayParams
impl Debug for PlayParams
Auto Trait Implementations§
impl Freeze for PlayParams
impl RefUnwindSafe for PlayParams
impl Send for PlayParams
impl Sync for PlayParams
impl Unpin for PlayParams
impl UnsafeUnpin for PlayParams
impl UnwindSafe for PlayParams
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