pub struct AudioConfig {
pub sample_rate: f64,
pub block_size: usize,
pub input_channels: usize,
pub output_channels: usize,
pub tempo: f64,
pub time_sig_numerator: i32,
pub time_sig_denominator: i32,
}Expand description
Audio processing configuration
Fields§
§sample_rate: f64Sample rate in Hz
block_size: usizeBlock size in samples
input_channels: usizeNumber of input channels
output_channels: usizeNumber of output channels
tempo: f64Transport tempo in beats per minute, advertised to plugins in the host
ProcessContext (drives tempo-synced DSP such as LFOs and synced delays).
time_sig_numerator: i32Time signature numerator (beats per bar), advertised in the ProcessContext.
time_sig_denominator: i32Time signature denominator (note value of one beat), advertised in the
ProcessContext.
Trait Implementations§
Source§impl Clone for AudioConfig
impl Clone for AudioConfig
Source§fn clone(&self) -> AudioConfig
fn clone(&self) -> AudioConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AudioConfig
Source§impl Debug for AudioConfig
impl Debug for AudioConfig
Auto Trait Implementations§
impl Freeze for AudioConfig
impl RefUnwindSafe for AudioConfig
impl Send for AudioConfig
impl Sync for AudioConfig
impl Unpin for AudioConfig
impl UnsafeUnpin for AudioConfig
impl UnwindSafe for AudioConfig
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