pub struct ChannelConfig {
pub name: String,
pub mode: ChannelMode,
pub volume: f32,
pub pan: f32,
pub muted: bool,
pub soloed: bool,
}Expand description
Configuration for a mixer channel.
Controls the channel name, mono/stereo mode, volume (0.0–1.0), pan (-1.0 left, 0.0 center, 1.0 right), mute, and solo state.
Fields§
§name: StringDisplay name for the channel.
mode: ChannelModeMono or stereo channel mode.
volume: f32Volume (0.0 = silence, 1.0 = unity).
pan: f32Pan (-1.0 = full left, 0.0 = center, 1.0 = full right).
muted: boolWhether the channel is muted.
soloed: boolWhether the channel is soloed (overrides mute).
Trait Implementations§
Source§impl Clone for ChannelConfig
impl Clone for ChannelConfig
Source§fn clone(&self) -> ChannelConfig
fn clone(&self) -> ChannelConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelConfig
impl Debug for ChannelConfig
Auto Trait Implementations§
impl Freeze for ChannelConfig
impl RefUnwindSafe for ChannelConfig
impl Send for ChannelConfig
impl Sync for ChannelConfig
impl Unpin for ChannelConfig
impl UnsafeUnpin for ChannelConfig
impl UnwindSafe for ChannelConfig
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