pub struct AudioContext { /* private fields */ }
Expand description
The AudioContext
class.
This API requires the following crate features to be activated: AudioContext
Implementations§
Source§impl AudioContext
impl AudioContext
Sourcepub fn sink_id(&self) -> JsValue
pub fn sink_id(&self) -> JsValue
Getter for the sinkId
field of this object.
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
impl AudioContext
Sourcepub fn onsinkchange(&self) -> Option<Function>
pub fn onsinkchange(&self) -> Option<Function>
Getter for the onsinkchange
field of this object.
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
impl AudioContext
Sourcepub fn set_onsinkchange(&self, value: Option<&Function>)
pub fn set_onsinkchange(&self, value: Option<&Function>)
Setter for the onsinkchange
field of this object.
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
impl AudioContext
Sourcepub fn destination(&self) -> AudioDestinationNode
pub fn destination(&self) -> AudioDestinationNode
Getter for the destination
field of this object.
This API requires the following crate features to be activated: AudioContext
, AudioDestinationNode
Source§impl AudioContext
impl AudioContext
Sourcepub fn sample_rate(&self) -> f32
pub fn sample_rate(&self) -> f32
Getter for the sampleRate
field of this object.
This API requires the following crate features to be activated: AudioContext