pub struct AudioBus {Show 24 fields
pub id: u64,
pub name: String,
pub bus_type: BusType,
pub gain_db: f32,
pub pan: f32,
pub mute: bool,
pub solo: bool,
pub effect_chain: EffectChain,
pub send_levels: HashMap<u64, f32>,
pub sidechain_source: Option<u64>,
pub sidechain_gain: f32,
pub parent_bus_id: Option<u64>,
pub children_bus_ids: Vec<u64>,
pub input_level_l: f32,
pub input_level_r: f32,
pub output_level_l: f32,
pub output_level_r: f32,
pub peak_hold_l: f32,
pub peak_hold_r: f32,
pub peak_hold_timer: u32,
pub channel_count: usize,
pub accumulated_l: f32,
pub accumulated_r: f32,
pub is_enabled: bool,
}Fields§
§id: u64§name: String§bus_type: BusType§gain_db: f32§pan: f32§mute: bool§solo: bool§effect_chain: EffectChain§send_levels: HashMap<u64, f32>§sidechain_source: Option<u64>§sidechain_gain: f32§parent_bus_id: Option<u64>§children_bus_ids: Vec<u64>§input_level_l: f32§input_level_r: f32§output_level_l: f32§output_level_r: f32§peak_hold_l: f32§peak_hold_r: f32§peak_hold_timer: u32§channel_count: usize§accumulated_l: f32§accumulated_r: f32§is_enabled: boolImplementations§
Source§impl AudioBus
impl AudioBus
pub fn new(id: u64, name: String, bus_type: BusType) -> Self
Sourcepub fn process_sample(&mut self, left: f32, right: f32) -> (f32, f32)
pub fn process_sample(&mut self, left: f32, right: f32) -> (f32, f32)
Process a single frame (one stereo pair)
pub fn add_child(&mut self, child_id: u64)
pub fn remove_child(&mut self, child_id: u64)
pub fn set_send(&mut self, target_bus_id: u64, level: f32)
pub fn peak_l_db(&self) -> f32
pub fn peak_r_db(&self) -> f32
pub fn output_l_db(&self) -> f32
pub fn output_r_db(&self) -> f32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AudioBus
impl RefUnwindSafe for AudioBus
impl Send for AudioBus
impl Sync for AudioBus
impl Unpin for AudioBus
impl UnsafeUnpin for AudioBus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.