pub trait ExtendAudioWorkletProcessor {
    type Data: 'static + Send;

    // Required method
    fn new(
        this: AudioWorkletProcessor,
        data: Option<Self::Data>,
        options: AudioWorkletNodeOptions,
    ) -> Self;

    // Provided methods
    fn process(
        &mut self,
        inputs: Array,
        outputs: Array,
        parameters: Object,
    ) -> bool { ... }
    fn parameter_descriptors() -> Iterator { ... }
}
Available on Web and crate feature audio-worklet only.
Expand description

Extends type with AudioWorkletProcessor.

Required Associated Types§

source

type Data: 'static + Send

Required Methods§

source

fn new( this: AudioWorkletProcessor, data: Option<Self::Data>, options: AudioWorkletNodeOptions, ) -> Self

Equivalent to AudioWorkletProcessor().

Provided Methods§

source

fn process(&mut self, inputs: Array, outputs: Array, parameters: Object) -> bool

source

fn parameter_descriptors() -> Iterator

Object Safety§

This trait is not object safe.

Implementors§