pub struct BusLayout {
pub inputs: Vec<BusConfig>,
pub outputs: Vec<BusConfig>,
}Expand description
Describes the audio bus configuration of a plugin.
Fields§
§inputs: Vec<BusConfig>§outputs: Vec<BusConfig>Implementations§
Source§impl BusLayout
impl BusLayout
pub fn new() -> Self
pub fn stereo() -> Self
pub fn with_input(self, name: &'static str, channels: ChannelConfig) -> Self
pub fn with_output(self, name: &'static str, channels: ChannelConfig) -> Self
pub fn total_input_channels(&self) -> u32
pub fn total_output_channels(&self) -> u32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BusLayout
impl RefUnwindSafe for BusLayout
impl Send for BusLayout
impl Sync for BusLayout
impl Unpin for BusLayout
impl UnsafeUnpin for BusLayout
impl UnwindSafe for BusLayout
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