pub struct AudioBufferSourceNodeOptions {
pub buffer: Option<AudioBuffer>,
pub detune: f32,
pub loop_enabled: bool,
pub loop_end: Option<f64>,
pub loop_start: Option<f64>,
pub playback_rate: f32,
}
Expand description
This specifies options for constructing an AudioBufferSourceNode.
Fields§
§buffer: Option<AudioBuffer>
The audio asset to be played.
detune: f32
The initial value for the detune AudioParam.
loop_enabled: bool
The initial value for the loop_enabled attribute.
loop_end: Option<f64>
The initial value for the loop_end attribute.
loop_start: Option<f64>
The initial value for the loop_start attribute.
playback_rate: f32
The initial value for the playback_rate AudioParam.
Trait Implementations§
source§impl Clone for AudioBufferSourceNodeOptions
impl Clone for AudioBufferSourceNodeOptions
source§fn clone(&self) -> AudioBufferSourceNodeOptions
fn clone(&self) -> AudioBufferSourceNodeOptions
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 moresource§impl Debug for AudioBufferSourceNodeOptions
impl Debug for AudioBufferSourceNodeOptions
Auto Trait Implementations§
impl Freeze for AudioBufferSourceNodeOptions
impl RefUnwindSafe for AudioBufferSourceNodeOptions
impl Send for AudioBufferSourceNodeOptions
impl Sync for AudioBufferSourceNodeOptions
impl Unpin for AudioBufferSourceNodeOptions
impl UnwindSafe for AudioBufferSourceNodeOptions
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