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 audio_node_options: AudioNodeOptions,
}
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.
audio_node_options: AudioNodeOptions
Channel config options
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> Freeze for AudioWorkletNodeOptions<C>where
C: Freeze,
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