[][src]Struct web_sys::AudioBufferSourceNode

#[repr(transparent)]
pub struct AudioBufferSourceNode { /* fields omitted */ }

The AudioBufferSourceNode object

MDN Documentation

This API requires the following crate features to be activated: AudioBufferSourceNode

Methods

impl AudioBufferSourceNode[src]

pub fn new(context: &BaseAudioContext) -> Result<AudioBufferSourceNode, JsValue>[src]

The new AudioBufferSourceNode(..) constructor, creating a new instance of AudioBufferSourceNode

MDN Documentation

This API requires the following crate features to be activated: AudioBufferSourceNode, BaseAudioContext

impl AudioBufferSourceNode[src]

pub fn new_with_options(
    context: &BaseAudioContext,
    options: &AudioBufferSourceOptions
) -> Result<AudioBufferSourceNode, JsValue>
[src]

The new AudioBufferSourceNode(..) constructor, creating a new instance of AudioBufferSourceNode

MDN Documentation

This API requires the following crate features to be activated: AudioBufferSourceNode, AudioBufferSourceOptions, BaseAudioContext

impl AudioBufferSourceNode[src]

pub fn start(&self) -> Result<(), JsValue>[src]

The start() method

MDN Documentation

This API requires the following crate features to be activated: AudioBufferSourceNode

impl AudioBufferSourceNode[src]

pub fn start_with_when(&self, when: f64) -> Result<(), JsValue>[src]

The start() method

MDN Documentation

This API requires the following crate features to be activated: AudioBufferSourceNode

impl AudioBufferSourceNode[src]

pub fn start_with_when_and_grain_offset(
    &self,
    when: f64,
    grain_offset: f64
) -> Result<(), JsValue>
[src]

The start() method

MDN Documentation

This API requires the following crate features to be activated: AudioBufferSourceNode

impl AudioBufferSourceNode[src]

pub fn start_with_when_and_grain_offset_and_grain_duration(
    &self,
    when: f64,
    grain_offset: f64,
    grain_duration: f64
) -> Result<(), JsValue>
[src]

The start() method

MDN Documentation

This API requires the following crate features to be activated: AudioBufferSourceNode

impl AudioBufferSourceNode[src]

pub fn stop(&self) -> Result<(), JsValue>[src]

The stop() method

MDN Documentation

This API requires the following crate features to be activated: AudioBufferSourceNode

impl AudioBufferSourceNode[src]

pub fn stop_with_when(&self, when: f64) -> Result<(), JsValue>[src]

The stop() method

MDN Documentation

This API requires the following crate features to be activated: AudioBufferSourceNode

impl AudioBufferSourceNode[src]

pub fn buffer(&self) -> Option<AudioBuffer>[src]

The buffer getter

MDN Documentation

This API requires the following crate features to be activated: AudioBuffer, AudioBufferSourceNode

impl AudioBufferSourceNode[src]

pub fn set_buffer(&self, buffer: Option<&AudioBuffer>)[src]

The buffer setter

MDN Documentation

This API requires the following crate features to be activated: AudioBuffer, AudioBufferSourceNode

impl AudioBufferSourceNode[src]

pub fn playback_rate(&self) -> AudioParam[src]

The playbackRate getter

MDN Documentation

This API requires the following crate features to be activated: AudioBufferSourceNode, AudioParam

impl AudioBufferSourceNode[src]

pub fn detune(&self) -> AudioParam[src]

The detune getter

MDN Documentation

This API requires the following crate features to be activated: AudioBufferSourceNode, AudioParam

impl AudioBufferSourceNode[src]

pub fn loop_(&self) -> bool[src]

The loop getter

MDN Documentation

This API requires the following crate features to be activated: AudioBufferSourceNode

impl AudioBufferSourceNode[src]

pub fn set_loop(&self, loop_: bool)[src]

The loop setter

MDN Documentation

This API requires the following crate features to be activated: AudioBufferSourceNode

impl AudioBufferSourceNode[src]

pub fn loop_start(&self) -> f64[src]

The loopStart getter

MDN Documentation

This API requires the following crate features to be activated: AudioBufferSourceNode

impl AudioBufferSourceNode[src]

pub fn set_loop_start(&self, loop_start: f64)[src]

The loopStart setter

MDN Documentation

This API requires the following crate features to be activated: AudioBufferSourceNode

impl AudioBufferSourceNode[src]

pub fn loop_end(&self) -> f64[src]

The loopEnd getter

MDN Documentation

This API requires the following crate features to be activated: AudioBufferSourceNode

impl AudioBufferSourceNode[src]

pub fn set_loop_end(&self, loop_end: f64)[src]

The loopEnd setter

MDN Documentation

This API requires the following crate features to be activated: AudioBufferSourceNode

impl AudioBufferSourceNode[src]

pub fn onended(&self) -> Option<Function>[src]

The onended getter

MDN Documentation

This API requires the following crate features to be activated: AudioBufferSourceNode

impl AudioBufferSourceNode[src]

pub fn set_onended(&self, onended: Option<&Function>)[src]

The onended setter

MDN Documentation

This API requires the following crate features to be activated: AudioBufferSourceNode

Methods from Deref<Target = AudioScheduledSourceNode>

pub fn start(&self) -> Result<(), JsValue>[src]

Deprecated:

doesn't exist in Safari, use parent class methods instead

The start() method

MDN Documentation

This API requires the following crate features to be activated: AudioScheduledSourceNode

pub fn start_with_when(&self, when: f64) -> Result<(), JsValue>[src]

Deprecated:

doesn't exist in Safari, use parent class methods instead

The start() method

MDN Documentation

This API requires the following crate features to be activated: AudioScheduledSourceNode

pub fn stop(&self) -> Result<(), JsValue>[src]

Deprecated:

doesn't exist in Safari, use parent class methods instead

The stop() method

MDN Documentation

This API requires the following crate features to be activated: AudioScheduledSourceNode

pub fn stop_with_when(&self, when: f64) -> Result<(), JsValue>[src]

Deprecated:

doesn't exist in Safari, use parent class methods instead

The stop() method

MDN Documentation

This API requires the following crate features to be activated: AudioScheduledSourceNode

pub fn onended(&self) -> Option<Function>[src]

The onended getter

MDN Documentation

This API requires the following crate features to be activated: AudioScheduledSourceNode

pub fn set_onended(&self, onended: Option<&Function>)[src]

Deprecated:

doesn't exist in Safari, use parent class methods instead

The onended setter

MDN Documentation

This API requires the following crate features to be activated: AudioScheduledSourceNode

Trait Implementations

impl AsRef<JsValue> for AudioBufferSourceNode[src]

impl AsRef<AudioScheduledSourceNode> for AudioBufferSourceNode[src]

impl AsRef<AudioNode> for AudioBufferSourceNode[src]

impl AsRef<EventTarget> for AudioBufferSourceNode[src]

impl AsRef<Object> for AudioBufferSourceNode[src]

impl From<JsValue> for AudioBufferSourceNode[src]

impl From<AudioBufferSourceNode> for JsValue[src]

impl From<AudioBufferSourceNode> for AudioScheduledSourceNode[src]

impl From<AudioBufferSourceNode> for AudioNode[src]

impl From<AudioBufferSourceNode> for EventTarget[src]

impl From<AudioBufferSourceNode> for Object[src]

impl Clone for AudioBufferSourceNode[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for AudioBufferSourceNode[src]

impl Deref for AudioBufferSourceNode[src]

type Target = AudioScheduledSourceNode

The resulting type after dereferencing.

impl FromWasmAbi for AudioBufferSourceNode[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for AudioBufferSourceNode[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a AudioBufferSourceNode[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl WasmDescribe for AudioBufferSourceNode[src]

impl OptionFromWasmAbi for AudioBufferSourceNode[src]

impl OptionIntoWasmAbi for AudioBufferSourceNode[src]

impl<'a> OptionIntoWasmAbi for &'a AudioBufferSourceNode[src]

impl RefFromWasmAbi for AudioBufferSourceNode[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<AudioBufferSourceNode>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl JsCast for AudioBufferSourceNode[src]

fn is_instance_of<T>(&self) -> bool where
    T: JsCast
[src]

Test whether this JS value is an instance of the type T. Read more

fn dyn_into<T>(self) -> Result<T, Self> where
    T: JsCast
[src]

Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more

fn dyn_ref<T>(&self) -> Option<&T> where
    T: JsCast
[src]

Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more

fn unchecked_into<T>(self) -> T where
    T: JsCast
[src]

Performs a zero-cost unchecked cast into the specified type. Read more

fn unchecked_ref<T>(&self) -> &T where
    T: JsCast
[src]

Performs a zero-cost unchecked cast into a reference to the specified type. Read more

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi