Trait web_audio_api::process::AudioProcessor[][src]

pub trait AudioProcessor: Send {
    fn process(
        &mut self,
        inputs: &[AudioBuffer],
        outputs: &mut [AudioBuffer],
        params: AudioParamValues<'_>,
        timestamp: f64,
        sample_rate: SampleRate
    );
fn tail_time(&self) -> bool; }

Interface for audio processing code that runs on the audio rendering thread.

Note that the AudioProcessor is typically constructed together with an AudioNode (the user facing object that lives in the control thread). See [crate::context::BaseAudioContext::register].

Required methods

fn process(
    &mut self,
    inputs: &[AudioBuffer],
    outputs: &mut [AudioBuffer],
    params: AudioParamValues<'_>,
    timestamp: f64,
    sample_rate: SampleRate
)
[src]

Audio processing function

fn tail_time(&self) -> bool[src]

Indicates if this node can have output when no inputs are connected

Loading content...

Implementors

Loading content...