Struct web_audio_api::node::AnalyserNode [−][src]
pub struct AnalyserNode { /* fields omitted */ }
Expand description
Provides real-time frequency and time-domain analysis information
Implementations
impl AnalyserNode
[src]
impl AnalyserNode
[src]pub fn new<C: AsBaseAudioContext>(context: &C, options: AnalyserOptions) -> Self
[src]
pub fn frequency_bin_count(&self) -> usize
[src]
pub fn frequency_bin_count(&self) -> usize
[src]Half the FFT size
pub fn fft_size(&self) -> usize
[src]
pub fn fft_size(&self) -> usize
[src]The size of the FFT used for frequency-domain analysis (in sample-frames)
pub fn set_fft_size(&self, fft_size: usize)
[src]
pub fn set_fft_size(&self, fft_size: usize)
[src]This MUST be a power of two in the range 32 to 32768
pub fn smoothing_time_constant(&self) -> f32
[src]
pub fn smoothing_time_constant(&self) -> f32
[src]Time averaging parameter with the last analysis frame.
pub fn set_smoothing_time_constant(&self, v: f32)
[src]
pub fn set_smoothing_time_constant(&self, v: f32)
[src]Set smoothing time constant, this MUST be a value between 0 and 1
Trait Implementations
impl AudioNode for AnalyserNode
[src]
impl AudioNode for AnalyserNode
[src]fn registration(&self) -> &AudioContextRegistration
[src]
fn channel_config_raw(&self) -> &ChannelConfig
[src]
fn number_of_inputs(&self) -> u32
[src]
fn number_of_inputs(&self) -> u32
[src]The number of inputs feeding into the AudioNode. For source nodes, this will be 0.
fn number_of_outputs(&self) -> u32
[src]
fn number_of_outputs(&self) -> u32
[src]The number of outputs coming out of the AudioNode.
fn id(&self) -> &AudioNodeId
[src]
fn channel_config_cloned(&self) -> ChannelConfig
[src]
fn context(&self) -> &BaseAudioContext
[src]
fn context(&self) -> &BaseAudioContext
[src]The BaseAudioContext which owns this AudioNode.
fn connect<'a>(&self, dest: &'a dyn AudioNode) -> &'a dyn AudioNode
[src]
fn connect<'a>(&self, dest: &'a dyn AudioNode) -> &'a dyn AudioNode
[src]Connect the output of this AudioNode to the input of another node.
fn connect_at<'a>(
&self,
dest: &'a dyn AudioNode,
output: u32,
input: u32
) -> Result<&'a dyn AudioNode, IndexSizeError>
[src]
fn connect_at<'a>(
&self,
dest: &'a dyn AudioNode,
output: u32,
input: u32
) -> Result<&'a dyn AudioNode, IndexSizeError>
[src]Connect a specific output of this AudioNode to a specific input of another node.
fn disconnect<'a>(&self, dest: &'a dyn AudioNode) -> &'a dyn AudioNode
[src]
fn disconnect<'a>(&self, dest: &'a dyn AudioNode) -> &'a dyn AudioNode
[src]Disconnects all outputs of the AudioNode that go to a specific destination AudioNode.
fn disconnect_all(&self)
[src]
fn disconnect_all(&self)
[src]Disconnects all outgoing connections from the AudioNode.
fn channel_count_mode(&self) -> ChannelCountMode
[src]
fn channel_count_mode(&self) -> ChannelCountMode
[src]Represents an enumerated value describing the way channels must be matched between the node’s inputs and outputs. Read more
fn set_channel_count_mode(&self, v: ChannelCountMode)
[src]
fn channel_interpretation(&self) -> ChannelInterpretation
[src]
fn channel_interpretation(&self) -> ChannelInterpretation
[src]Represents an enumerated value describing the meaning of the channels. This interpretation will define how audio up-mixing and down-mixing will happen. Read more
fn set_channel_interpretation(&self, v: ChannelInterpretation)
[src]
fn channel_count(&self) -> usize
[src]
fn channel_count(&self) -> usize
[src]Represents an integer used to determine how many channels are used when up-mixing and down-mixing connections to any inputs to the node. Read more