pub struct TrackState {Show 13 fields
pub name: String,
pub muted: bool,
pub soloed: bool,
pub armed: bool,
pub color_index: usize,
pub kind: TrackKind,
pub clips: Vec<Clip>,
pub fx_chain: Vec<FxInstance>,
pub volume: f32,
pub mixer_id: Option<usize>,
pub handle: Option<Arc<TrackHandle>>,
pub instrument_type: Option<InstrumentType>,
pub synth_params: Vec<f32>,
}Fields§
§name: String§muted: bool§soloed: bool§armed: bool§color_index: usize§kind: TrackKind§clips: Vec<Clip>§fx_chain: Vec<FxInstance>Track-level FX chain.
volume: f32Track volume (0.0..1.0).
mixer_id: Option<usize>Unique ID for this track (matches the mixer’s track ID).
handle: Option<Arc<TrackHandle>>Handle to the audio engine’s track state. When present, mute/solo/arm/volume writes go directly to the audio thread via atomics.
instrument_type: Option<InstrumentType>What type of instrument this track has.
synth_params: Vec<f32>Parameter values (mirrors the audio thread’s plugin params).
Implementations§
Trait Implementations§
Source§impl Clone for TrackState
impl Clone for TrackState
Source§fn clone(&self) -> TrackState
fn clone(&self) -> TrackState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TrackState
impl RefUnwindSafe for TrackState
impl Send for TrackState
impl Sync for TrackState
impl Unpin for TrackState
impl UnsafeUnpin for TrackState
impl UnwindSafe for TrackState
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