Struct web_audio_api::worklet::AudioWorkletNodeOptions
source · pub struct AudioWorkletNodeOptions<C> {
pub number_of_inputs: usize,
pub number_of_outputs: usize,
pub output_channel_count: Vec<usize>,
pub parameter_data: HashMap<String, f64>,
pub processor_options: C,
pub channel_config: ChannelConfigOptions,
}
Expand description
Options for constructing an AudioWorkletNode
Fields§
§number_of_inputs: usize
This is used to initialize the value of the AudioNode numberOfInputs attribute.
number_of_outputs: usize
This is used to initialize the value of the AudioNode numberOfOutputs attribute.
output_channel_count: Vec<usize>
This array is used to configure the number of channels in each output.
parameter_data: HashMap<String, f64>
This is a list of user-defined key-value pairs that are used to set the initial value of an AudioParam with the matched name in the AudioWorkletNode.
processor_options: C
This holds any user-defined data that may be used to initialize custom properties in an AudioWorkletProcessor instance that is associated with the AudioWorkletNode.
channel_config: ChannelConfigOptions
Trait Implementations§
source§impl<C: Clone> Clone for AudioWorkletNodeOptions<C>
impl<C: Clone> Clone for AudioWorkletNodeOptions<C>
source§fn clone(&self) -> AudioWorkletNodeOptions<C>
fn clone(&self) -> AudioWorkletNodeOptions<C>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<C: Debug> Debug for AudioWorkletNodeOptions<C>
impl<C: Debug> Debug for AudioWorkletNodeOptions<C>
Auto Trait Implementations§
impl<C> RefUnwindSafe for AudioWorkletNodeOptions<C>where
C: RefUnwindSafe,
impl<C> Send for AudioWorkletNodeOptions<C>where
C: Send,
impl<C> Sync for AudioWorkletNodeOptions<C>where
C: Sync,
impl<C> Unpin for AudioWorkletNodeOptions<C>where
C: Unpin,
impl<C> UnwindSafe for AudioWorkletNodeOptions<C>where
C: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more