pub struct TrackConfig {
pub muted: AtomicBool,
pub soloed: AtomicBool,
pub armed: AtomicBool,
pub midi_active: AtomicBool,
pub volume: AtomicU32,
}Expand description
Audio-thread-safe track configuration.
Written by the UI thread, read by the audio thread — all fields are atomic so no locks are needed.
Fields§
§muted: AtomicBool§soloed: AtomicBool§armed: AtomicBool§midi_active: AtomicBoolWhether this track is currently selected for MIDI input. Only one track should be selected at a time.
volume: AtomicU32Volume stored as f32 bits in an AtomicU32.
Implementations§
Trait Implementations§
Source§impl Debug for TrackConfig
impl Debug for TrackConfig
Auto Trait Implementations§
impl !Freeze for TrackConfig
impl RefUnwindSafe for TrackConfig
impl Send for TrackConfig
impl Sync for TrackConfig
impl Unpin for TrackConfig
impl UnsafeUnpin for TrackConfig
impl UnwindSafe for TrackConfig
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