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; }
Expand description

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

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

Required methods

Audio processing function

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

Implementors