pub enum AudioBufferSourceNodeMessage {
SetBuffer(Option<AudioBuffer>),
SetLoopEnabled(bool),
SetLoopEnd(f64),
SetLoopStart(f64),
SetStartParams(f64, Option<f64>, Option<f64>),
}
Expand description
Control messages directed to AudioBufferSourceNodes.
Variants§
SetBuffer(Option<AudioBuffer>)
Set the data block holding the audio sample data to be played.
SetLoopEnabled(bool)
Set loop parameter.
SetLoopEnd(f64)
Set loop parameter.
SetLoopStart(f64)
Set loop parameter.
SetStartParams(f64, Option<f64>, Option<f64>)
Set start parameters (when, offset, duration).
Trait Implementations§
source§impl Clone for AudioBufferSourceNodeMessage
impl Clone for AudioBufferSourceNodeMessage
source§fn clone(&self) -> AudioBufferSourceNodeMessage
fn clone(&self) -> AudioBufferSourceNodeMessage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for AudioBufferSourceNodeMessage
impl RefUnwindSafe for AudioBufferSourceNodeMessage
impl Send for AudioBufferSourceNodeMessage
impl Sync for AudioBufferSourceNodeMessage
impl Unpin for AudioBufferSourceNodeMessage
impl UnwindSafe for AudioBufferSourceNodeMessage
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