Trait web_audio_api::node::AudioNode[][src]

pub trait AudioNode {
Show methods fn registration(&self) -> &AudioContextRegistration;
fn channel_config_raw(&self) -> &ChannelConfig;
fn number_of_inputs(&self) -> u32;
fn number_of_outputs(&self) -> u32; fn id(&self) -> &AudioNodeId { ... }
fn channel_config_cloned(&self) -> ChannelConfig { ... }
fn context(&self) -> &BaseAudioContext { ... }
fn connect<'a>(&self, dest: &'a dyn AudioNode) -> &'a dyn AudioNode { ... }
fn connect_at<'a>(
        &self,
        dest: &'a dyn AudioNode,
        output: u32,
        input: u32
    ) -> Result<&'a dyn AudioNode, IndexSizeError> { ... }
fn disconnect<'a>(&self, dest: &'a dyn AudioNode) -> &'a dyn AudioNode { ... }
fn disconnect_all(&self) { ... }
fn channel_count_mode(&self) -> ChannelCountMode { ... }
fn set_channel_count_mode(&self, v: ChannelCountMode) { ... }
fn channel_interpretation(&self) -> ChannelInterpretation { ... }
fn set_channel_interpretation(&self, v: ChannelInterpretation) { ... }
fn channel_count(&self) -> usize { ... }
fn set_channel_count(&self, v: usize) { ... }
}
Expand description

This interface represents audio sources, the audio destination, and intermediate processing modules.

These modules can be connected together to form processing graphs for rendering audio to the audio hardware. Each node can have inputs and/or outputs.

Note that the AudioNode is typically constructed together with an AudioProcessor (the object that lives the render thread). See BaseAudioContext::register.

Required methods

fn registration(&self) -> &AudioContextRegistration[src]

fn channel_config_raw(&self) -> &ChannelConfig[src]

fn number_of_inputs(&self) -> u32[src]

Expand description

The number of inputs feeding into the AudioNode. For source nodes, this will be 0.

fn number_of_outputs(&self) -> u32[src]

Expand description

The number of outputs coming out of the AudioNode.

Loading content...

Provided methods

fn id(&self) -> &AudioNodeId[src]

fn channel_config_cloned(&self) -> ChannelConfig[src]

fn context(&self) -> &BaseAudioContext[src]

Expand description

The BaseAudioContext which owns this AudioNode.

fn connect<'a>(&self, dest: &'a dyn AudioNode) -> &'a dyn AudioNode[src]

Expand description

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]

Expand description

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]

Expand description

Disconnects all outputs of the AudioNode that go to a specific destination AudioNode.

fn disconnect_all(&self)[src]

Expand description

Disconnects all outgoing connections from the AudioNode.

fn channel_count_mode(&self) -> ChannelCountMode[src]

Expand description

Represents an enumerated value describing the way channels must be matched between the node’s inputs and outputs.

fn set_channel_count_mode(&self, v: ChannelCountMode)[src]

fn channel_interpretation(&self) -> ChannelInterpretation[src]

Expand description

Represents an enumerated value describing the meaning of the channels. This interpretation will define how audio up-mixing and down-mixing will happen.

fn set_channel_interpretation(&self, v: ChannelInterpretation)[src]

fn channel_count(&self) -> usize[src]

Expand description

Represents an integer used to determine how many channels are used when up-mixing and down-mixing connections to any inputs to the node.

fn set_channel_count(&self, v: usize)[src]

Loading content...

Implementors

impl AudioNode for AudioParam[src]

impl AudioNode for AnalyserNode[src]

impl AudioNode for AudioBufferSourceNode[src]

impl AudioNode for ChannelMergerNode[src]

impl AudioNode for ChannelSplitterNode[src]

impl AudioNode for ConstantSourceNode[src]

impl AudioNode for DelayNode[src]

impl AudioNode for DestinationNode[src]

impl AudioNode for GainNode[src]

impl AudioNode for MediaElementAudioSourceNode[src]

impl AudioNode for MediaStreamAudioSourceNode[src]

impl AudioNode for OscillatorNode[src]

impl AudioNode for PannerNode[src]

Loading content...