pub struct ChainDevice {Show 13 fields
pub id: PlayerDeviceId,
pub player: Symbol,
pub mode: PlayerMode,
pub order: u32,
pub bypass: bool,
pub mute: bool,
pub solo: bool,
pub enabled: bool,
pub params: ParamSnapshot,
pub generated: Vec<PlayEvent>,
pub filter_lanes: Vec<LaneId>,
pub route_lane: Option<LaneId>,
pub placement: ChainPlacement,
}Expand description
A single processing stage in a player chain.
Fields§
§id: PlayerDeviceIdIdentifier of this device.
player: SymbolSymbol of the player backing this device.
mode: PlayerModeMode controlling how the device combines with its input.
order: u32Sort order of the device within the chain.
bypass: boolWhether the device passes input through untouched.
mute: boolWhether the device is muted (excluded from rendering).
solo: boolWhether the device is soloed.
enabled: boolWhether the device is enabled.
params: ParamSnapshotParameter snapshot for the device.
generated: Vec<PlayEvent>Events the device contributes to the chain.
filter_lanes: Vec<LaneId>Lane ids the device filters out, kept sorted for binary search.
route_lane: Option<LaneId>Optional lane the device reroutes events onto.
placement: ChainPlacementPlacement of the device on a site.
Implementations§
Source§impl ChainDevice
impl ChainDevice
Sourcepub fn new(
id: impl Into<String>,
player: Symbol,
mode: PlayerMode,
order: u32,
) -> Self
pub fn new( id: impl Into<String>, player: Symbol, mode: PlayerMode, order: u32, ) -> Self
Creates an enabled device with default flags and local placement.
Sourcepub fn with_generated(self, generated: Vec<PlayEvent>) -> Self
pub fn with_generated(self, generated: Vec<PlayEvent>) -> Self
Sets the device’s generated events.
Sourcepub fn with_filter_lanes(self, lanes: Vec<LaneId>) -> Self
pub fn with_filter_lanes(self, lanes: Vec<LaneId>) -> Self
Sets the filter lanes, keeping them sorted for lookup.
Sourcepub fn with_route_lane(self, lane: LaneId) -> Self
pub fn with_route_lane(self, lane: LaneId) -> Self
Sets the lane that events are rerouted onto.
Sourcepub fn with_placement(self, placement: ChainPlacement) -> Self
pub fn with_placement(self, placement: ChainPlacement) -> Self
Sets the device’s placement.
Trait Implementations§
Source§impl Clone for ChainDevice
impl Clone for ChainDevice
Source§fn clone(&self) -> ChainDevice
fn clone(&self) -> ChainDevice
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more