pub struct MixerSession {Show 14 fields
pub session_name: String,
pub sample_rate: f32,
pub bit_depth: u32,
pub channel_strips: Vec<ChannelStrip>,
pub send_buses: Vec<SendReturnBus>,
pub master_bus: MasterBusProcessor,
pub bpm: f32,
pub time_signature_numerator: u32,
pub time_signature_denominator: u32,
pub play_head_seconds: f32,
pub is_playing: bool,
pub is_recording: bool,
pub solo_exclusive: bool,
pub monitor_input: bool,
}Fields§
§session_name: String§sample_rate: f32§bit_depth: u32§channel_strips: Vec<ChannelStrip>§send_buses: Vec<SendReturnBus>§master_bus: MasterBusProcessor§bpm: f32§time_signature_numerator: u32§time_signature_denominator: u32§play_head_seconds: f32§is_playing: bool§is_recording: bool§solo_exclusive: bool§monitor_input: boolImplementations§
Source§impl MixerSession
impl MixerSession
pub fn new(session_name: &str, sample_rate: f32, bit_depth: u32) -> Self
pub fn add_channel(&mut self, name: &str) -> usize
pub fn remove_channel(&mut self, index: usize)
pub fn process_frame(&mut self, inputs: &[(f32, f32)]) -> (f32, f32)
pub fn advance_play_head(&mut self, delta_seconds: f32)
pub fn beats_per_second(&self) -> f32
pub fn current_beat(&self) -> f32
pub fn current_bar_beat(&self) -> (u32, f32)
pub fn seconds_per_beat(&self) -> f32
pub fn seconds_per_bar(&self) -> f32
pub fn channel_count(&self) -> usize
pub fn mute_channel(&mut self, index: usize, mute: bool)
pub fn solo_channel(&mut self, index: usize, solo: bool)
pub fn set_channel_pan(&mut self, index: usize, pan: f32)
pub fn set_channel_fader(&mut self, index: usize, value: f32)
pub fn get_channel_rms(&self, index: usize) -> f32
pub fn get_channel_lufs(&self, index: usize) -> f32
pub fn master_lufs(&self) -> f32
pub fn master_peak(&self) -> f32
Trait Implementations§
Source§impl Clone for MixerSession
impl Clone for MixerSession
Auto Trait Implementations§
impl Freeze for MixerSession
impl RefUnwindSafe for MixerSession
impl Send for MixerSession
impl Sync for MixerSession
impl Unpin for MixerSession
impl UnsafeUnpin for MixerSession
impl UnwindSafe for MixerSession
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.