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)
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for AudioParamValues<'a>
impl<'a> !Send for AudioParamValues<'a>
impl<'a> !Sync for AudioParamValues<'a>
impl<'a> Unpin for AudioParamValues<'a>
impl<'a> !UnwindSafe for AudioParamValues<'a>
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