pub struct LiveGraphConfig { /* private fields */ }Expand description
Live runner configuration.
Implementations§
Source§impl LiveGraphConfig
impl LiveGraphConfig
Sourcepub fn new(
spec: PcmSpec,
input_channels: usize,
max_block_frames: u32,
control_queue_capacity: usize,
audio_queue_capacity: usize,
) -> Result<Self>
pub fn new( spec: PcmSpec, input_channels: usize, max_block_frames: u32, control_queue_capacity: usize, audio_queue_capacity: usize, ) -> Result<Self>
Builds a runner configuration, validating block size, channel counts (up to stereo), and bounded queue capacities.
Sourcepub fn stereo(sample_rate_hz: u32, max_block_frames: u32) -> Result<Self>
pub fn stereo(sample_rate_hz: u32, max_block_frames: u32) -> Result<Self>
Builds a stereo-in/stereo-out configuration with full event queues.
Sourcepub fn input_channels(self) -> usize
pub fn input_channels(self) -> usize
Returns the input channel count.
Sourcepub fn output_channels(self) -> usize
pub fn output_channels(self) -> usize
Returns the output channel count.
Sourcepub fn max_block_frames(self) -> u32
pub fn max_block_frames(self) -> u32
Returns the maximum block size in frames.
Trait Implementations§
Source§impl Clone for LiveGraphConfig
impl Clone for LiveGraphConfig
Source§fn clone(&self) -> LiveGraphConfig
fn clone(&self) -> LiveGraphConfig
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 LiveGraphConfig
Source§impl Debug for LiveGraphConfig
impl Debug for LiveGraphConfig
impl Eq for LiveGraphConfig
Source§impl PartialEq for LiveGraphConfig
impl PartialEq for LiveGraphConfig
Source§fn eq(&self, other: &LiveGraphConfig) -> bool
fn eq(&self, other: &LiveGraphConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LiveGraphConfig
Auto Trait Implementations§
impl Freeze for LiveGraphConfig
impl RefUnwindSafe for LiveGraphConfig
impl Send for LiveGraphConfig
impl Sync for LiveGraphConfig
impl Unpin for LiveGraphConfig
impl UnsafeUnpin for LiveGraphConfig
impl UnwindSafe for LiveGraphConfig
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