pub struct EngineHandle {
pub tracks: Arc<Mutex<Vec<Track>>>,
pub global: GlobalParams,
pub peak_l: Shared,
pub peak_r: Shared,
pub sample_rate: f32,
pub scope: ScopeBuffer,
pub phase_clock: Shared,
pub recorder: Arc<RecorderState>,
/* private fields */
}Expand description
Handle the TUI keeps alive for the lifetime of the app.
Fields§
§tracks: Arc<Mutex<Vec<Track>>>§global: GlobalParams§peak_l: Shared§peak_r: Shared§sample_rate: f32§scope: ScopeBuffer§phase_clock: Shared§recorder: Arc<RecorderState>Implementations§
Source§impl EngineHandle
impl EngineHandle
Sourcepub fn rebuild_graph(&self)
pub fn rebuild_graph(&self)
Rebuild the master DSP graph from the current track list. Call
this after mutating any track.kind. Cheap enough for live use —
the audio callback sees the new graph on its next buffer.
NB: the old graph’s internal state (reverb tails, oscillator phases) is discarded. There’s a small audible discontinuity during preset swaps; acceptable given how rarely kind changes.
Auto Trait Implementations§
impl Freeze for EngineHandle
impl !RefUnwindSafe for EngineHandle
impl !Send for EngineHandle
impl !Sync for EngineHandle
impl Unpin for EngineHandle
impl UnsafeUnpin for EngineHandle
impl !UnwindSafe for EngineHandle
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
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more