pub struct GraphConfig {
pub num_frames: usize,
pub sample_rate: u32,
pub channels: u16,
}Expand description
Compile-time configuration fixing the size of every scratch buffer.
All fields are fixed at Graph::compile time so that
Graph::process_cycle can rely on every buffer being pre-sized to exactly
channels * num_frames samples.
Fields§
§num_frames: usizeNumber of audio frames processed per cycle (per channel).
sample_rate: u32Sample rate in Hz.
channels: u16Channel count carried by every port.
Implementations§
Trait Implementations§
Source§impl Clone for GraphConfig
impl Clone for GraphConfig
Source§fn clone(&self) -> GraphConfig
fn clone(&self) -> GraphConfig
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 GraphConfig
Source§impl Debug for GraphConfig
impl Debug for GraphConfig
impl Eq for GraphConfig
Source§impl PartialEq for GraphConfig
impl PartialEq for GraphConfig
impl StructuralPartialEq for GraphConfig
Auto Trait Implementations§
impl Freeze for GraphConfig
impl RefUnwindSafe for GraphConfig
impl Send for GraphConfig
impl Sync for GraphConfig
impl Unpin for GraphConfig
impl UnsafeUnpin for GraphConfig
impl UnwindSafe for GraphConfig
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