pub struct AudioParamValues<'a> { /* private fields */ }
Expand description
Accessor for current AudioParam
values
Implementations§
Source§impl<'a> AudioParamValues<'a>
impl<'a> AudioParamValues<'a>
Sourcepub fn get(&'a self, name: &str) -> impl Deref<Target = [f32]> + 'a
pub fn get(&'a self, name: &str) -> impl Deref<Target = [f32]> + 'a
Get the computed values for the given 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)
pub fn keys(&self) -> impl Iterator<Item = &str>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AudioParamValues<'a>
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