[−][src]Struct web_sys::AudioBufferSourceNode
The AudioBufferSourceNode
object
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
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]
context: &BaseAudioContext,
options: &AudioBufferSourceOptions
) -> Result<AudioBufferSourceNode, JsValue>
The new AudioBufferSourceNode(..)
constructor, creating a new instance of AudioBufferSourceNode
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
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
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]
&self,
when: f64,
grain_offset: f64
) -> Result<(), JsValue>
The start()
method
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]
&self,
when: f64,
grain_offset: f64,
grain_duration: f64
) -> Result<(), JsValue>
The start()
method
This API requires the following crate features to be activated: AudioBufferSourceNode
impl AudioBufferSourceNode
[src]
pub fn stop(&self) -> Result<(), JsValue>
[src]
The stop()
method
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
This API requires the following crate features to be activated: AudioBufferSourceNode
impl AudioBufferSourceNode
[src]
pub fn buffer(&self) -> Option<AudioBuffer>
[src]
The buffer
getter
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
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
This API requires the following crate features to be activated: AudioBufferSourceNode
, AudioParam
impl AudioBufferSourceNode
[src]
pub fn detune(&self) -> AudioParam
[src]
The detune
getter
This API requires the following crate features to be activated: AudioBufferSourceNode
, AudioParam
impl AudioBufferSourceNode
[src]
pub fn loop_(&self) -> bool
[src]
The loop
getter
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
This API requires the following crate features to be activated: AudioBufferSourceNode
impl AudioBufferSourceNode
[src]
pub fn loop_start(&self) -> f64
[src]
The loopStart
getter
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
This API requires the following crate features to be activated: AudioBufferSourceNode
impl AudioBufferSourceNode
[src]
pub fn loop_end(&self) -> f64
[src]
The loopEnd
getter
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
This API requires the following crate features to be activated: AudioBufferSourceNode
impl AudioBufferSourceNode
[src]
pub fn onended(&self) -> Option<Function>
[src]
The onended
getter
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
This API requires the following crate features to be activated: AudioBufferSourceNode
Methods from Deref<Target = AudioScheduledSourceNode>
pub fn start(&self) -> Result<(), JsValue>
[src]
doesn't exist in Safari, use parent class methods instead
The start()
method
This API requires the following crate features to be activated: AudioScheduledSourceNode
pub fn start_with_when(&self, when: f64) -> Result<(), JsValue>
[src]
doesn't exist in Safari, use parent class methods instead
The start()
method
This API requires the following crate features to be activated: AudioScheduledSourceNode
pub fn stop(&self) -> Result<(), JsValue>
[src]
doesn't exist in Safari, use parent class methods instead
The stop()
method
This API requires the following crate features to be activated: AudioScheduledSourceNode
pub fn stop_with_when(&self, when: f64) -> Result<(), JsValue>
[src]
doesn't exist in Safari, use parent class methods instead
The stop()
method
This API requires the following crate features to be activated: AudioScheduledSourceNode
pub fn onended(&self) -> Option<Function>
[src]
The onended
getter
This API requires the following crate features to be activated: AudioScheduledSourceNode
pub fn set_onended(&self, onended: Option<&Function>)
[src]
doesn't exist in Safari, use parent class methods instead
The onended
setter
This API requires the following crate features to be activated: AudioScheduledSourceNode
Trait Implementations
impl Clone for AudioBufferSourceNode
[src]
fn clone(&self) -> AudioBufferSourceNode
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<JsValue> for AudioBufferSourceNode
[src]
fn from(obj: JsValue) -> AudioBufferSourceNode
[src]
impl From<AudioBufferSourceNode> for JsValue
[src]
fn from(obj: AudioBufferSourceNode) -> JsValue
[src]
impl From<AudioBufferSourceNode> for AudioScheduledSourceNode
[src]
fn from(obj: AudioBufferSourceNode) -> AudioScheduledSourceNode
[src]
impl From<AudioBufferSourceNode> for AudioNode
[src]
fn from(obj: AudioBufferSourceNode) -> AudioNode
[src]
impl From<AudioBufferSourceNode> for EventTarget
[src]
fn from(obj: AudioBufferSourceNode) -> EventTarget
[src]
impl From<AudioBufferSourceNode> for Object
[src]
fn from(obj: AudioBufferSourceNode) -> Object
[src]
impl AsRef<JsValue> for AudioBufferSourceNode
[src]
impl AsRef<AudioScheduledSourceNode> for AudioBufferSourceNode
[src]
fn as_ref(&self) -> &AudioScheduledSourceNode
[src]
impl AsRef<AudioNode> for AudioBufferSourceNode
[src]
impl AsRef<EventTarget> for AudioBufferSourceNode
[src]
fn as_ref(&self) -> &EventTarget
[src]
impl AsRef<Object> for AudioBufferSourceNode
[src]
impl Deref for AudioBufferSourceNode
[src]
type Target = AudioScheduledSourceNode
The resulting type after dereferencing.
fn deref(&self) -> &AudioScheduledSourceNode
[src]
impl Debug 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
unsafe fn from_abi(js: Self::Abi, extra: &mut dyn Stack) -> Self
[src]
impl WasmDescribe for AudioBufferSourceNode
[src]
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
fn into_abi(self, extra: &mut dyn Stack) -> Self::Abi
[src]
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
fn into_abi(self, extra: &mut dyn Stack) -> Self::Abi
[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
unsafe fn ref_from_abi(js: Self::Abi, extra: &mut dyn Stack) -> Self::Anchor
[src]
impl JsCast for AudioBufferSourceNode
[src]
fn instanceof(val: &JsValue) -> bool
[src]
fn unchecked_from_js(val: JsValue) -> Self
[src]
fn unchecked_from_js_ref(val: &JsValue) -> &Self
[src]
fn is_instance_of<T>(&self) -> bool where
T: JsCast,
[src]
T: JsCast,
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]
T: JsCast,
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]
T: JsCast,
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]
T: JsCast,
Performs a zero-cost unchecked cast into the specified type. Read more
fn unchecked_ref<T>(&self) -> &T where
T: JsCast,
[src]
T: JsCast,
Performs a zero-cost unchecked cast into a reference to the specified type. Read more
Auto Trait Implementations
impl !Send for AudioBufferSourceNode
impl !Sync for AudioBufferSourceNode
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
[src]
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi