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
sourceimpl<'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 crate::RENDER_QUANTUM_SIZE
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more