pub struct Runtime<E: 'static> { /* private fields */ }
Implementations§
Source§impl<E: 'static + Send + Clone + Copy> Runtime<E>
impl<E: 'static + Send + Clone + Copy> Runtime<E>
pub fn get<T: 'static>(&self, handle: &StateHandle<T>) -> &T
pub fn get_mut<T: 'static>(&self, handle: &StateHandle<T>) -> &mut T
pub fn get_source_mut<T: Modulator<E> + 'static>( &self, handle: &ModulatorHandle<T>, ) -> &mut T
pub fn route<S: 'static, T: Parameters + 'static>( &mut self, source: ModulatorHandle<S>, target: ParameterHandle<T>, param: &str, amount: f32, )
pub fn tick( &mut self, sample_rate: f32, event: Option<E>, input: &[f32], output: &mut [f32], )
pub fn get_parameters<T: Parameters>( &self, handle: &ParameterHandle<T>, ) -> T::Accessor<'_, E>
Auto Trait Implementations§
impl<E> !Freeze for Runtime<E>
impl<E> !RefUnwindSafe for Runtime<E>
impl<E> Send for Runtime<E>
impl<E> !Sync for Runtime<E>
impl<E> Unpin for Runtime<E>
impl<E> !UnwindSafe for Runtime<E>
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