pub struct AudioBus {
pub id: BusId,
pub name: String,
pub gain: Animated<f32>,
pub pan: Animated<f32>,
pub muted: bool,
pub solo: bool,
pub effects: Vec<AudioEffect>,
pub output: Option<BusId>,
pub sends: Vec<AudioSend>,
}Expand description
A named bus: it sums what tracks and other buses route into it, runs its effects, and outputs through its fader to another bus or the master.
Fields§
§id: BusIdStable identity, unique among the project’s buses.
name: StringDisplay name.
gain: Animated<f32>Animated linear bus amplitude constrained to 0..=MAX_GAIN.
pan: Animated<f32>Animated stereo position applied after the effects, from -1 (left) to 1 (right).
muted: boolSilences this bus on its output, its sends and as a key.
solo: boolRestricts the mix to what flows through soloed tracks and buses when any sets this.
effects: Vec<AudioEffect>Ordered effects applied to the summed input, at most MAX_CHAIN_EFFECTS.
output: Option<BusId>The bus this one outputs to; absent is the master.
sends: Vec<AudioSend>Copies of this bus’s signal sent into other buses, at most MAX_AUDIO_SENDS.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AudioBus
impl<'de> Deserialize<'de> for AudioBus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for AudioBus
Auto Trait Implementations§
impl Forget for AudioBus
impl Freeze for AudioBuswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Keyframe<f32>>: Freeze,
PhantomData<Animated<f32>>: Freeze,
*const DataBinding is !null: Freeze,
PhantomData<DataBinding>: Freeze,
PhantomData<AudioEffect>: Freeze,
PhantomData<AudioSend>: Freeze,
impl Move for AudioBus
impl RefUnwindSafe for AudioBus
impl Send for AudioBus
impl Sync for AudioBus
impl Unpin for AudioBus
impl UnsafeUnpin for AudioBuswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Keyframe<f32>>: UnsafeUnpin,
PhantomData<Animated<f32>>: UnsafeUnpin,
*const DataBinding is !null: UnsafeUnpin,
PhantomData<DataBinding>: UnsafeUnpin,
PhantomData<AudioEffect>: UnsafeUnpin,
PhantomData<AudioSend>: UnsafeUnpin,
impl UnwindSafe for AudioBus
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