pub struct ActiveFwCtx<C: 'static> { /* private fields */ }Implementations§
Source§impl<C: 'static> ActiveFwCtx<C>
impl<C: 'static> ActiveFwCtx<C>
pub fn graph(&self) -> &AudioGraph<C>
pub fn graph_mut(&mut self) -> &mut AudioGraph<C>
Sourcepub fn update(self) -> UpdateStatus<C>
pub fn update(self) -> UpdateStatus<C>
Update the firewheel context.
This must be called reguarly (i.e. once every frame).
Sourcepub fn deactivate(
self,
stream_is_running: bool,
) -> (InactiveFwCtx<C>, Option<C>)
pub fn deactivate( self, stream_is_running: bool, ) -> (InactiveFwCtx<C>, Option<C>)
Deactivate the firewheel context.
This will block the thread until either the processor has been successfully dropped or a timeout has been reached.
If the stream is still currently running, then the context will attempt to cleanly deactivate the processor. If not, then the context will wait for either the processor to be dropped or a timeout being reached.
Trait Implementations§
Auto Trait Implementations§
impl<C> !Freeze for ActiveFwCtx<C>
impl<C> !RefUnwindSafe for ActiveFwCtx<C>
impl<C> !Send for ActiveFwCtx<C>
impl<C> !Sync for ActiveFwCtx<C>
impl<C> Unpin for ActiveFwCtx<C>
impl<C> !UnwindSafe for ActiveFwCtx<C>
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