pub struct PcmReaderConfig {
pub buffer_len_ms: i32,
pub sample_rate: i32,
pub format: PcmFormat,
}Expand description
Configuration for PcmReader.
Fields§
§buffer_len_ms: i32Ring buffer length in milliseconds (maps to m_len_ms).
sample_rate: i32Sample rate (must be 16000).
format: PcmFormatInput PCM format.
Trait Implementations§
Source§impl Clone for PcmReaderConfig
impl Clone for PcmReaderConfig
Source§fn clone(&self) -> PcmReaderConfig
fn clone(&self) -> PcmReaderConfig
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 PcmReaderConfig
impl Debug for PcmReaderConfig
Auto Trait Implementations§
impl Freeze for PcmReaderConfig
impl RefUnwindSafe for PcmReaderConfig
impl Send for PcmReaderConfig
impl Sync for PcmReaderConfig
impl Unpin for PcmReaderConfig
impl UnwindSafe for PcmReaderConfig
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