Struct cpal::StreamConfig
source · pub struct StreamConfig {
pub channels: ChannelCount,
pub sample_rate: SampleRate,
pub buffer_size: BufferSize,
}
Expand description
The set of parameters used to describe how to open a stream.
The sample format is omitted in favour of using a sample type.
Fields§
§channels: ChannelCount
§sample_rate: SampleRate
§buffer_size: BufferSize
Trait Implementations§
source§impl Clone for StreamConfig
impl Clone for StreamConfig
source§fn clone(&self) -> StreamConfig
fn clone(&self) -> StreamConfig
Returns a copy 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 StreamConfig
impl Debug for StreamConfig
source§impl From<SupportedStreamConfig> for StreamConfig
impl From<SupportedStreamConfig> for StreamConfig
source§fn from(conf: SupportedStreamConfig) -> Self
fn from(conf: SupportedStreamConfig) -> Self
Converts to this type from the input type.
source§impl PartialEq<StreamConfig> for StreamConfig
impl PartialEq<StreamConfig> for StreamConfig
source§fn eq(&self, other: &StreamConfig) -> bool
fn eq(&self, other: &StreamConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.