[][src]Struct web_sys::AudioBufferSourceNode

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

The AudioBufferSourceNode class.

MDN Documentation

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

Methods

impl AudioBufferSourceNode[src]

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

Getter for the buffer field of this object.

MDN Documentation

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

impl AudioBufferSourceNode[src]

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

Setter for the buffer field of this object.

MDN Documentation

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

impl AudioBufferSourceNode[src]

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

Getter for the playbackRate field of this object.

MDN Documentation

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

impl AudioBufferSourceNode[src]

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

Getter for the detune field of this object.

MDN Documentation

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

impl AudioBufferSourceNode[src]

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

Getter for the loop field of this object.

MDN Documentation

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

impl AudioBufferSourceNode[src]

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

Setter for the loop field of this object.

MDN Documentation

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

impl AudioBufferSourceNode[src]

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

Getter for the loopStart field of this object.

MDN Documentation

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

impl AudioBufferSourceNode[src]

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

Setter for the loopStart field of this object.

MDN Documentation

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

impl AudioBufferSourceNode[src]

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

Getter for the loopEnd field of this object.

MDN Documentation

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

impl AudioBufferSourceNode[src]

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

Setter for the loopEnd field of this object.

MDN Documentation

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

impl AudioBufferSourceNode[src]

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

Getter for the onended field of this object.

MDN Documentation

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

impl AudioBufferSourceNode[src]

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

Setter for the onended field of this object.

MDN Documentation

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

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

Methods from Deref<Target = AudioScheduledSourceNode>

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

Deprecated:

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

Getter for the onended field of this object.

MDN Documentation

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

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

Deprecated:

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

Setter for the onended field of this object.

MDN Documentation

This API requires the following crate features to be activated: 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

Trait Implementations

impl AsRef<AudioBufferSourceNode> for AudioBufferSourceNode[src]

impl AsRef<AudioNode> for AudioBufferSourceNode[src]

impl AsRef<AudioScheduledSourceNode> for AudioBufferSourceNode[src]

impl AsRef<EventTarget> for AudioBufferSourceNode[src]

impl AsRef<JsValue> for AudioBufferSourceNode[src]

impl AsRef<Object> for AudioBufferSourceNode[src]

impl Clone for AudioBufferSourceNode[src]

impl Debug for AudioBufferSourceNode[src]

impl Deref for AudioBufferSourceNode[src]

type Target = AudioScheduledSourceNode

The resulting type after dereferencing.

impl Eq 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 From<JsValue> for AudioBufferSourceNode[src]

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 JsCast for AudioBufferSourceNode[src]

impl OptionFromWasmAbi for AudioBufferSourceNode[src]

impl OptionIntoWasmAbi for AudioBufferSourceNode[src]

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

impl PartialEq<AudioBufferSourceNode> for 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 StructuralEq for AudioBufferSourceNode[src]

impl StructuralPartialEq for AudioBufferSourceNode[src]

impl WasmDescribe for AudioBufferSourceNode[src]

Auto Trait Implementations

impl RefUnwindSafe for AudioBufferSourceNode

impl !Send for AudioBufferSourceNode

impl !Sync for AudioBufferSourceNode

impl Unpin for AudioBufferSourceNode

impl UnwindSafe for AudioBufferSourceNode

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.