AudioContext

Struct AudioContext 

Source
pub struct AudioContext { /* private fields */ }
Expand description

The AudioContext class.

MDN Documentation

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

Implementations§

Source§

impl AudioContext

Source

pub fn sink_id(&self) -> JsValue

Getter for the sinkId field of this object.

MDN Documentation

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

This API is unstable and requires --cfg=web_sys_unstable_apis to be activated, as described in the wasm-bindgen guide

Source§

impl AudioContext

Source

pub fn onsinkchange(&self) -> Option<Function>

Getter for the onsinkchange field of this object.

MDN Documentation

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

This API is unstable and requires --cfg=web_sys_unstable_apis to be activated, as described in the wasm-bindgen guide

Source§

impl AudioContext

Source

pub fn set_onsinkchange(&self, value: Option<&Function>)

Setter for the onsinkchange field of this object.

MDN Documentation

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

This API is unstable and requires --cfg=web_sys_unstable_apis to be activated, as described in the wasm-bindgen guide

Source§

impl AudioContext

Source

pub fn destination(&self) -> AudioDestinationNode

Getter for the destination field of this object.

MDN Documentation

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

Source§

impl AudioContext

Source

pub fn sample_rate(&self) -> f32

Getter for the sampleRate field of this object.

MDN Documentation

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

Source