pub struct AudioProcessingConfig { /* private fields */ }Expand description
Configuration for audio processing operations
Implementations§
Source§impl AudioProcessingConfig
impl AudioProcessingConfig
Sourcepub fn with_sample_rate(self, rate: u32) -> Self
pub fn with_sample_rate(self, rate: u32) -> Self
Set the sample rate
Sourcepub fn with_bit_depth(self, depth: u16) -> Self
pub fn with_bit_depth(self, depth: u16) -> Self
Set the bit depth
Sourcepub fn with_channels(self, channels: u8) -> Self
pub fn with_channels(self, channels: u8) -> Self
Set the number of channels
Sourcepub fn with_buffer_size(self, size: usize) -> Self
pub fn with_buffer_size(self, size: usize) -> Self
Set the buffer size
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Set the timeout duration
Sourcepub fn sample_rate(&self) -> u32
pub fn sample_rate(&self) -> u32
Get the sample rate
Sourcepub fn buffer_size(&self) -> usize
pub fn buffer_size(&self) -> usize
Get the buffer size
Trait Implementations§
Source§impl Clone for AudioProcessingConfig
impl Clone for AudioProcessingConfig
Source§fn clone(&self) -> AudioProcessingConfig
fn clone(&self) -> AudioProcessingConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AudioProcessingConfig
impl Debug for AudioProcessingConfig
Auto Trait Implementations§
impl Freeze for AudioProcessingConfig
impl RefUnwindSafe for AudioProcessingConfig
impl Send for AudioProcessingConfig
impl Sync for AudioProcessingConfig
impl Unpin for AudioProcessingConfig
impl UnwindSafe for AudioProcessingConfig
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