pub struct Vst3Bus {
pub name: String,
pub kind: Vst3BusKind,
pub dir: PortDir,
pub channels: u16,
}Expand description
A VST3 input or output bus.
Describes one audio or event bus by name, direction, and lane count;
to_port_decl lowers it into a graph PortDecl.
Fields§
§name: StringThe display name of the bus.
kind: Vst3BusKindWhether the bus carries audio or events.
dir: PortDirThe data direction (input or output) of the bus.
channels: u16The number of graph lanes (channels) the bus exposes.
Implementations§
Source§impl Vst3Bus
impl Vst3Bus
Sourcepub fn new(
name: impl Into<String>,
kind: Vst3BusKind,
dir: PortDir,
channels: u16,
) -> Result<Self>
pub fn new( name: impl Into<String>, kind: Vst3BusKind, dir: PortDir, channels: u16, ) -> Result<Self>
Builds a bus, validating that name is non-empty and channels is
non-zero.
Returns an error when the name is blank or when no lane is requested.
Sourcepub fn audio_input(name: impl Into<String>, channels: u16) -> Result<Self>
pub fn audio_input(name: impl Into<String>, channels: u16) -> Result<Self>
Builds an audio input bus named name with channels lanes.
Sourcepub fn audio_output(name: impl Into<String>, channels: u16) -> Result<Self>
pub fn audio_output(name: impl Into<String>, channels: u16) -> Result<Self>
Builds an audio output bus named name with channels lanes.
Sourcepub fn event_input(name: impl Into<String>) -> Result<Self>
pub fn event_input(name: impl Into<String>) -> Result<Self>
Builds a single-lane event input bus named name.
Sourcepub fn to_port_decl(&self) -> PortDecl
pub fn to_port_decl(&self) -> PortDecl
Lowers this bus into a graph PortDecl with matching media, direction,
and lane count.
Trait Implementations§
impl Eq for Vst3Bus
impl StructuralPartialEq for Vst3Bus
Auto Trait Implementations§
impl Freeze for Vst3Bus
impl RefUnwindSafe for Vst3Bus
impl Send for Vst3Bus
impl Sync for Vst3Bus
impl Unpin for Vst3Bus
impl UnsafeUnpin for Vst3Bus
impl UnwindSafe for Vst3Bus
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