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§
sourcetype Data: 'static + Send
type Data: 'static + Send
Data passed into Self::new()
when using
BaseAudioContextExt::audio_worklet_node()
.
Required Methods§
sourcefn new(
this: AudioWorkletProcessor,
data: Option<Self::Data>,
options: AudioWorkletNodeOptions,
) -> Self
fn new( this: AudioWorkletProcessor, data: Option<Self::Data>, options: AudioWorkletNodeOptions, ) -> Self
Equivalent to AudioWorkletProcessor()
.
Provided Methods§
sourcefn process(&mut self, inputs: Array, outputs: Array, parameters: Object) -> bool
fn process(&mut self, inputs: Array, outputs: Array, parameters: Object) -> bool
Equivalent to AudioWorkletProcessor.process()
.
sourcefn parameter_descriptors() -> Iterator
fn parameter_descriptors() -> Iterator
Equivalent to AudioWorkletProcessor.parameterDescriptors
.
Object Safety§
This trait is not object safe.