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) -> &[f32]
pub fn get(&self, index: &AudioParamId) -> &[f32]
Get the computed values for the given crate::param::AudioParam
For both A & K-rate params, 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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