Struct web_audio_api::render::AudioParamValues
source · pub struct AudioParamValues<'a> { /* private fields */ }
Expand description
Accessor for current crate::param::AudioParam
values
Provided to implementations of AudioProcessor
in the render thread
Implementations§
source§impl<'a> AudioParamValues<'a>
impl<'a> AudioParamValues<'a>
sourcepub fn get(&self, index: &AudioParamId) -> impl Deref<Target = [f32]> + '_
pub fn get(&self, index: &AudioParamId) -> impl Deref<Target = [f32]> + '_
Get the computed values for the given crate::param::AudioParam
For k-rate params or if the (a-rate) parameter is constant for this block, it will provide a slice of length 1. In other cases, i.e. a-rate param with scheduled automations it will provide a slice of length equal to the render quantum size (default: 128)