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
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for StreamConfig
impl Send for StreamConfig
impl Sync for StreamConfig
impl Unpin for StreamConfig
impl UnwindSafe for StreamConfig
Blanket Implementations
Mutably borrows from an owned value. Read more