[][src]Struct web_sys::BaseAudioContext

#[repr(transparent)]
pub struct BaseAudioContext { /* fields omitted */ }
Deprecated:

doesn't exist in Safari, use AudioContext instead now

The BaseAudioContext object

MDN Documentation

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

Methods

impl BaseAudioContext[src]

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

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createAnalyser() method

MDN Documentation

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

impl BaseAudioContext[src]

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

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createBiquadFilter() method

MDN Documentation

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

impl BaseAudioContext[src]

pub fn create_buffer(
    &self,
    number_of_channels: u32,
    length: u32,
    sample_rate: f32
) -> Result<AudioBuffer, JsValue>
[src]

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createBuffer() method

MDN Documentation

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

impl BaseAudioContext[src]

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

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createBufferSource() method

MDN Documentation

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

impl BaseAudioContext[src]

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

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createChannelMerger() method

MDN Documentation

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

impl BaseAudioContext[src]

pub fn create_channel_merger_with_number_of_inputs(
    &self,
    number_of_inputs: u32
) -> Result<ChannelMergerNode, JsValue>
[src]

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createChannelMerger() method

MDN Documentation

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

impl BaseAudioContext[src]

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

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createChannelSplitter() method

MDN Documentation

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

impl BaseAudioContext[src]

pub fn create_channel_splitter_with_number_of_outputs(
    &self,
    number_of_outputs: u32
) -> Result<ChannelSplitterNode, JsValue>
[src]

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createChannelSplitter() method

MDN Documentation

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

impl BaseAudioContext[src]

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

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createConstantSource() method

MDN Documentation

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

impl BaseAudioContext[src]

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

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createConvolver() method

MDN Documentation

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

impl BaseAudioContext[src]

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

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createDelay() method

MDN Documentation

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

impl BaseAudioContext[src]

pub fn create_delay_with_max_delay_time(
    &self,
    max_delay_time: f64
) -> Result<DelayNode, JsValue>
[src]

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createDelay() method

MDN Documentation

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

impl BaseAudioContext[src]

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

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createDynamicsCompressor() method

MDN Documentation

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

impl BaseAudioContext[src]

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

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createGain() method

MDN Documentation

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

impl BaseAudioContext[src]

pub fn create_iir_filter(
    &self,
    feedforward: &JsValue,
    feedback: &JsValue
) -> Result<IirFilterNode, JsValue>
[src]

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createIIRFilter() method

MDN Documentation

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

impl BaseAudioContext[src]

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

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createOscillator() method

MDN Documentation

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

impl BaseAudioContext[src]

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

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createPanner() method

MDN Documentation

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

impl BaseAudioContext[src]

pub fn create_periodic_wave(
    &self,
    real: &mut [f32],
    imag: &mut [f32]
) -> Result<PeriodicWave, JsValue>
[src]

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createPeriodicWave() method

MDN Documentation

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

impl BaseAudioContext[src]

pub fn create_periodic_wave_with_constraints(
    &self,
    real: &mut [f32],
    imag: &mut [f32],
    constraints: &PeriodicWaveConstraints
) -> Result<PeriodicWave, JsValue>
[src]

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createPeriodicWave() method

MDN Documentation

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

impl BaseAudioContext[src]

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

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createScriptProcessor() method

MDN Documentation

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

impl BaseAudioContext[src]

pub fn create_script_processor_with_buffer_size(
    &self,
    buffer_size: u32
) -> Result<ScriptProcessorNode, JsValue>
[src]

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createScriptProcessor() method

MDN Documentation

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

impl BaseAudioContext[src]

pub fn create_script_processor_with_buffer_size_and_number_of_input_channels(
    &self,
    buffer_size: u32,
    number_of_input_channels: u32
) -> Result<ScriptProcessorNode, JsValue>
[src]

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createScriptProcessor() method

MDN Documentation

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

impl BaseAudioContext[src]

pub fn create_script_processor_with_buffer_size_and_number_of_input_channels_and_number_of_output_channels(
    &self,
    buffer_size: u32,
    number_of_input_channels: u32,
    number_of_output_channels: u32
) -> Result<ScriptProcessorNode, JsValue>
[src]

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createScriptProcessor() method

MDN Documentation

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

impl BaseAudioContext[src]

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

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createStereoPanner() method

MDN Documentation

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

impl BaseAudioContext[src]

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

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The createWaveShaper() method

MDN Documentation

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

impl BaseAudioContext[src]

pub fn decode_audio_data(
    &self,
    audio_data: &ArrayBuffer
) -> Result<Promise, JsValue>
[src]

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The decodeAudioData() method

MDN Documentation

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

impl BaseAudioContext[src]

pub fn decode_audio_data_with_success_callback(
    &self,
    audio_data: &ArrayBuffer,
    success_callback: &Function
) -> Result<Promise, JsValue>
[src]

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The decodeAudioData() method

MDN Documentation

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

impl BaseAudioContext[src]

pub fn decode_audio_data_with_success_callback_and_error_callback(
    &self,
    audio_data: &ArrayBuffer,
    success_callback: &Function,
    error_callback: &Function
) -> Result<Promise, JsValue>
[src]

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The decodeAudioData() method

MDN Documentation

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

impl BaseAudioContext[src]

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

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The resume() method

MDN Documentation

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

impl BaseAudioContext[src]

pub fn destination(&self) -> AudioDestinationNode[src]

The destination getter

MDN Documentation

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

impl BaseAudioContext[src]

pub fn sample_rate(&self) -> f32[src]

The sampleRate getter

MDN Documentation

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

impl BaseAudioContext[src]

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

The currentTime getter

MDN Documentation

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

impl BaseAudioContext[src]

pub fn listener(&self) -> AudioListener[src]

The listener getter

MDN Documentation

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

impl BaseAudioContext[src]

pub fn state(&self) -> AudioContextState[src]

The state getter

MDN Documentation

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

impl BaseAudioContext[src]

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

The audioWorklet getter

MDN Documentation

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

impl BaseAudioContext[src]

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

The onstatechange getter

MDN Documentation

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

impl BaseAudioContext[src]

pub fn set_onstatechange(&self, onstatechange: Option<&Function>)[src]

Deprecated:

doesn't exist in Safari, use AudioContext instead now

The onstatechange setter

MDN Documentation

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

Methods from Deref<Target = EventTarget>

pub fn add_event_listener_with_callback(
    &self,
    type_: &str,
    listener: &Function
) -> Result<(), JsValue>
[src]

The addEventListener() method

MDN Documentation

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

pub fn add_event_listener_with_event_listener(
    &self,
    type_: &str,
    listener: &EventListener
) -> Result<(), JsValue>
[src]

The addEventListener() method

MDN Documentation

This API requires the following crate features to be activated: EventListener, EventTarget

pub fn add_event_listener_with_callback_and_add_event_listener_options(
    &self,
    type_: &str,
    listener: &Function,
    options: &AddEventListenerOptions
) -> Result<(), JsValue>
[src]

The addEventListener() method

MDN Documentation

This API requires the following crate features to be activated: AddEventListenerOptions, EventTarget

pub fn add_event_listener_with_event_listener_and_add_event_listener_options(
    &self,
    type_: &str,
    listener: &EventListener,
    options: &AddEventListenerOptions
) -> Result<(), JsValue>
[src]

The addEventListener() method

MDN Documentation

This API requires the following crate features to be activated: AddEventListenerOptions, EventListener, EventTarget

pub fn add_event_listener_with_callback_and_bool(
    &self,
    type_: &str,
    listener: &Function,
    options: bool
) -> Result<(), JsValue>
[src]

The addEventListener() method

MDN Documentation

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

pub fn add_event_listener_with_event_listener_and_bool(
    &self,
    type_: &str,
    listener: &EventListener,
    options: bool
) -> Result<(), JsValue>
[src]

The addEventListener() method

MDN Documentation

This API requires the following crate features to be activated: EventListener, EventTarget

pub fn add_event_listener_with_callback_and_add_event_listener_options_and_wants_untrusted(
    &self,
    type_: &str,
    listener: &Function,
    options: &AddEventListenerOptions,
    wants_untrusted: Option<bool>
) -> Result<(), JsValue>
[src]

The addEventListener() method

MDN Documentation

This API requires the following crate features to be activated: AddEventListenerOptions, EventTarget

pub fn add_event_listener_with_event_listener_and_add_event_listener_options_and_wants_untrusted(
    &self,
    type_: &str,
    listener: &EventListener,
    options: &AddEventListenerOptions,
    wants_untrusted: Option<bool>
) -> Result<(), JsValue>
[src]

The addEventListener() method

MDN Documentation

This API requires the following crate features to be activated: AddEventListenerOptions, EventListener, EventTarget

pub fn add_event_listener_with_callback_and_bool_and_wants_untrusted(
    &self,
    type_: &str,
    listener: &Function,
    options: bool,
    wants_untrusted: Option<bool>
) -> Result<(), JsValue>
[src]

The addEventListener() method

MDN Documentation

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

pub fn add_event_listener_with_event_listener_and_bool_and_wants_untrusted(
    &self,
    type_: &str,
    listener: &EventListener,
    options: bool,
    wants_untrusted: Option<bool>
) -> Result<(), JsValue>
[src]

The addEventListener() method

MDN Documentation

This API requires the following crate features to be activated: EventListener, EventTarget

pub fn dispatch_event(&self, event: &Event) -> Result<bool, JsValue>[src]

The dispatchEvent() method

MDN Documentation

This API requires the following crate features to be activated: Event, EventTarget

pub fn remove_event_listener_with_callback(
    &self,
    type_: &str,
    listener: &Function
) -> Result<(), JsValue>
[src]

The removeEventListener() method

MDN Documentation

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

pub fn remove_event_listener_with_event_listener(
    &self,
    type_: &str,
    listener: &EventListener
) -> Result<(), JsValue>
[src]

The removeEventListener() method

MDN Documentation

This API requires the following crate features to be activated: EventListener, EventTarget

pub fn remove_event_listener_with_callback_and_event_listener_options(
    &self,
    type_: &str,
    listener: &Function,
    options: &EventListenerOptions
) -> Result<(), JsValue>
[src]

The removeEventListener() method

MDN Documentation

This API requires the following crate features to be activated: EventListenerOptions, EventTarget

pub fn remove_event_listener_with_event_listener_and_event_listener_options(
    &self,
    type_: &str,
    listener: &EventListener,
    options: &EventListenerOptions
) -> Result<(), JsValue>
[src]

The removeEventListener() method

MDN Documentation

This API requires the following crate features to be activated: EventListener, EventListenerOptions, EventTarget

pub fn remove_event_listener_with_callback_and_bool(
    &self,
    type_: &str,
    listener: &Function,
    options: bool
) -> Result<(), JsValue>
[src]

The removeEventListener() method

MDN Documentation

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

pub fn remove_event_listener_with_event_listener_and_bool(
    &self,
    type_: &str,
    listener: &EventListener,
    options: bool
) -> Result<(), JsValue>
[src]

The removeEventListener() method

MDN Documentation

This API requires the following crate features to be activated: EventListener, EventTarget

Trait Implementations

impl AsRef<BaseAudioContext> for AudioContext[src]

impl AsRef<BaseAudioContext> for BaseAudioContext[src]

impl AsRef<BaseAudioContext> for OfflineAudioContext[src]

impl AsRef<EventTarget> for BaseAudioContext[src]

impl AsRef<JsValue> for BaseAudioContext[src]

impl AsRef<Object> for BaseAudioContext[src]

impl Clone for BaseAudioContext[src]

impl Debug for BaseAudioContext[src]

impl Deref for BaseAudioContext[src]

type Target = EventTarget

The resulting type after dereferencing.

impl Eq for BaseAudioContext[src]

impl From<AudioContext> for BaseAudioContext[src]

impl From<BaseAudioContext> for JsValue[src]

impl From<BaseAudioContext> for EventTarget[src]

impl From<BaseAudioContext> for Object[src]

impl From<JsValue> for BaseAudioContext[src]

impl From<OfflineAudioContext> for BaseAudioContext[src]

impl FromWasmAbi for BaseAudioContext[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 BaseAudioContext[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 BaseAudioContext[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 BaseAudioContext[src]

impl OptionFromWasmAbi for BaseAudioContext[src]

impl OptionIntoWasmAbi for BaseAudioContext[src]

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

impl PartialEq<BaseAudioContext> for BaseAudioContext[src]

impl RefFromWasmAbi for BaseAudioContext[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<BaseAudioContext>

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 BaseAudioContext[src]

impl StructuralPartialEq for BaseAudioContext[src]

impl WasmDescribe for BaseAudioContext[src]

Auto Trait Implementations

impl RefUnwindSafe for BaseAudioContext

impl !Send for BaseAudioContext

impl !Sync for BaseAudioContext

impl Unpin for BaseAudioContext

impl UnwindSafe for BaseAudioContext

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.