Trait script::dom::bindings::codegen::Bindings::AnalyserNodeBinding::AnalyserNode_Binding::AnalyserNodeMethods
source · pub trait AnalyserNodeMethods {
Show 14 methods
// Required methods
fn GetFloatFrequencyData(
&self,
array: CustomAutoRooterGuard<'_, Float32Array>,
);
fn GetByteFrequencyData(&self, array: CustomAutoRooterGuard<'_, Uint8Array>);
fn GetFloatTimeDomainData(
&self,
array: CustomAutoRooterGuard<'_, Float32Array>,
);
fn GetByteTimeDomainData(
&self,
array: CustomAutoRooterGuard<'_, Uint8Array>,
);
fn FftSize(&self) -> u32;
fn SetFftSize(&self, value: u32) -> Result<(), Error>;
fn FrequencyBinCount(&self) -> u32;
fn MinDecibels(&self) -> Finite<f64>;
fn SetMinDecibels(&self, value: Finite<f64>) -> Result<(), Error>;
fn MaxDecibels(&self) -> Finite<f64>;
fn SetMaxDecibels(&self, value: Finite<f64>) -> Result<(), Error>;
fn SmoothingTimeConstant(&self) -> Finite<f64>;
fn SetSmoothingTimeConstant(&self, value: Finite<f64>) -> Result<(), Error>;
fn Constructor(
global: &Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
context: &BaseAudioContext,
options: &AnalyserOptions,
) -> Result<Root<Dom<AnalyserNode>>, Error>;
}
Required Methods§
fn GetFloatFrequencyData(&self, array: CustomAutoRooterGuard<'_, Float32Array>)
fn GetByteFrequencyData(&self, array: CustomAutoRooterGuard<'_, Uint8Array>)
fn GetFloatTimeDomainData(&self, array: CustomAutoRooterGuard<'_, Float32Array>)
fn GetByteTimeDomainData(&self, array: CustomAutoRooterGuard<'_, Uint8Array>)
fn FftSize(&self) -> u32
fn SetFftSize(&self, value: u32) -> Result<(), Error>
fn FrequencyBinCount(&self) -> u32
fn MinDecibels(&self) -> Finite<f64>
fn SetMinDecibels(&self, value: Finite<f64>) -> Result<(), Error>
fn MaxDecibels(&self) -> Finite<f64>
fn SetMaxDecibels(&self, value: Finite<f64>) -> Result<(), Error>
fn SmoothingTimeConstant(&self) -> Finite<f64>
fn SetSmoothingTimeConstant(&self, value: Finite<f64>) -> Result<(), Error>
fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, context: &BaseAudioContext, options: &AnalyserOptions, ) -> Result<Root<Dom<AnalyserNode>>, Error>
Object Safety§
This trait is not object safe.