pub struct StreamingFrameConfig {
pub frame_size: usize,
pub hop_size: usize,
pub channel_mix: ChannelMix,
pub max_buffered_samples: usize,
}Expand description
Data type for streaming frame config.
Fields§
§frame_size: usizeThe frame size value.
hop_size: usizeThe hop size value.
channel_mix: ChannelMixThe channel mix value.
max_buffered_samples: usizeThe max buffered samples value.
Implementations§
Source§impl StreamingFrameConfig
impl StreamingFrameConfig
Sourcepub fn channel_mix(self, mix: ChannelMix) -> Self
pub fn channel_mix(self, mix: ChannelMix) -> Self
Returns channel mix.
Sourcepub fn max_buffered_samples(self, samples: usize) -> Self
pub fn max_buffered_samples(self, samples: usize) -> Self
Returns max buffered samples.
Trait Implementations§
Source§impl Clone for StreamingFrameConfig
impl Clone for StreamingFrameConfig
Source§fn clone(&self) -> StreamingFrameConfig
fn clone(&self) -> StreamingFrameConfig
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 StreamingFrameConfig
Source§impl Debug for StreamingFrameConfig
impl Debug for StreamingFrameConfig
impl Eq for StreamingFrameConfig
Source§impl PartialEq for StreamingFrameConfig
impl PartialEq for StreamingFrameConfig
Source§fn eq(&self, other: &StreamingFrameConfig) -> bool
fn eq(&self, other: &StreamingFrameConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamingFrameConfig
Auto Trait Implementations§
impl Freeze for StreamingFrameConfig
impl RefUnwindSafe for StreamingFrameConfig
impl Send for StreamingFrameConfig
impl Sync for StreamingFrameConfig
impl Unpin for StreamingFrameConfig
impl UnsafeUnpin for StreamingFrameConfig
impl UnwindSafe for StreamingFrameConfig
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