Struct script::dom::analysernode::AnalyserNode
source · #[repr(C)]pub struct AnalyserNode {
node: AudioNode,
engine: DomRefCell<AnalysisEngine>,
}
Fields§
§node: AudioNode
§engine: DomRefCell<AnalysisEngine>
Implementations§
source§impl AnalyserNode
impl AnalyserNode
pub fn new_inherited(
_: &Window,
context: &BaseAudioContext,
options: &AnalyserOptions
) -> Result<(AnalyserNode, IpcReceiver<Block>), Error>
pub fn new(
window: &Window,
context: &BaseAudioContext,
options: &AnalyserOptions
) -> Result<Root<Dom<AnalyserNode>>, Error>
sourcepub fn Constructor(
window: &Window,
context: &BaseAudioContext,
options: &AnalyserOptions
) -> Result<Root<Dom<AnalyserNode>>, Error>
pub fn Constructor(
window: &Window,
context: &BaseAudioContext,
options: &AnalyserOptions
) -> Result<Root<Dom<AnalyserNode>>, Error>
https://webaudio.github.io/web-audio-api/#dom-analysernode-analysernode
pub fn push_block(&self, block: Block)
source§impl AnalyserNode
impl AnalyserNode
fn __assert_parent_type(&self)
Trait Implementations§
source§impl AnalyserNodeMethods for AnalyserNode
impl AnalyserNodeMethods for AnalyserNode
source§fn GetFloatFrequencyData(&self, array: CustomAutoRooterGuard<'_, Float32Array>)
fn GetFloatFrequencyData(&self, array: CustomAutoRooterGuard<'_, Float32Array>)
https://webaudio.github.io/web-audio-api/#dom-analysernode-getfloatfrequencydata
source§fn GetByteFrequencyData(&self, array: CustomAutoRooterGuard<'_, Uint8Array>)
fn GetByteFrequencyData(&self, array: CustomAutoRooterGuard<'_, Uint8Array>)
https://webaudio.github.io/web-audio-api/#dom-analysernode-getbytefrequencydata
source§fn GetFloatTimeDomainData(&self, array: CustomAutoRooterGuard<'_, Float32Array>)
fn GetFloatTimeDomainData(&self, array: CustomAutoRooterGuard<'_, Float32Array>)
https://webaudio.github.io/web-audio-api/#dom-analysernode-getfloattimedomaindata
source§fn GetByteTimeDomainData(&self, array: CustomAutoRooterGuard<'_, Uint8Array>)
fn GetByteTimeDomainData(&self, array: CustomAutoRooterGuard<'_, Uint8Array>)
https://webaudio.github.io/web-audio-api/#dom-analysernode-getbytetimedomaindata
source§fn SetFftSize(&self, value: u32) -> Result<(), Error>
fn SetFftSize(&self, value: u32) -> Result<(), Error>
https://webaudio.github.io/web-audio-api/#dom-analysernode-fftsize
source§fn FrequencyBinCount(&self) -> u32
fn FrequencyBinCount(&self) -> u32
https://webaudio.github.io/web-audio-api/#dom-analysernode-frequencybincount
source§fn MinDecibels(&self) -> Finite<f64>
fn MinDecibels(&self) -> Finite<f64>
https://webaudio.github.io/web-audio-api/#dom-analysernode-mindecibels
source§fn SetMinDecibels(&self, value: Finite<f64>) -> Result<(), Error>
fn SetMinDecibels(&self, value: Finite<f64>) -> Result<(), Error>
https://webaudio.github.io/web-audio-api/#dom-analysernode-mindecibels
source§fn MaxDecibels(&self) -> Finite<f64>
fn MaxDecibels(&self) -> Finite<f64>
https://webaudio.github.io/web-audio-api/#dom-analysernode-maxdecibels
source§fn SetMaxDecibels(&self, value: Finite<f64>) -> Result<(), Error>
fn SetMaxDecibels(&self, value: Finite<f64>) -> Result<(), Error>
https://webaudio.github.io/web-audio-api/#dom-analysernode-maxdecibels
source§fn SmoothingTimeConstant(&self) -> Finite<f64>
fn SmoothingTimeConstant(&self) -> Finite<f64>
https://webaudio.github.io/web-audio-api/#dom-analysernode-smoothingtimeconstant
source§impl Castable for AnalyserNode
impl Castable for AnalyserNode
source§impl DomObject for AnalyserNode
impl DomObject for AnalyserNode
source§impl DomObjectWrap for AnalyserNode
impl DomObjectWrap for AnalyserNode
source§const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::AnalyserNodeBinding::AnalyserNodeBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::analysernode::AnalyserNode>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::analysernode::AnalyserNode>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::AnalyserNodeBinding::AnalyserNodeBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::analysernode::AnalyserNode>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::analysernode::AnalyserNode>>}
source§impl HasParent for AnalyserNode
impl HasParent for AnalyserNode
source§impl IDLInterface for AnalyserNode
impl IDLInterface for AnalyserNode
source§impl JSTraceable for AnalyserNode
impl JSTraceable for AnalyserNode
source§impl MallocSizeOf for AnalyserNode
impl MallocSizeOf for AnalyserNode
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl MutDomObject for AnalyserNode
impl MutDomObject for AnalyserNode
source§unsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
source§impl PartialEq<AnalyserNode> for AnalyserNode
impl PartialEq<AnalyserNode> for AnalyserNode
source§fn eq(&self, other: &AnalyserNode) -> bool
fn eq(&self, other: &AnalyserNode) -> bool
self
and other
values to be equal, and is used
by ==
.