pub fn with_sample_rate(self, sample_rate: SampleRate) -> SupportedStreamConfig {
        assert!(self.min_sample_rate <= sample_rate && sample_rate <= self.max_sample_rate);
        SupportedStreamConfig {
            channels: self.channels,
            sample_rate,
            sample_format: self.sample_format,
            buffer_size: self.buffer_size,
        }
    }
/// Retrieve a `SupportedStreamConfig` with the given sample rate and buffer size.
///
/// **panic!**s if the given `sample_rate` is outside the range specified within this
/// `SupportedStreamConfigRange` instance.
Retrieve a `SupportedStreamConfig` with the given sample rate and buffer size.
panic!**s if the given `sample_rate` is outside the range specified within this
`SupportedStreamConfigRange` instance.
Retrieve a ` SupportedStreamConfig ` with the given sample rate and buffer size . panic! ** s if the given ` sample_rate ` is outside the range specified within this ` SupportedStreamConfigRange ` instance .
pub fn with_sample_rate(self, sample_rate: SampleRate) -> SupportedStreamConfig {
        assert!(self.min_sample_rate <= sample_rate && sample_rate <= self.max_sample_rate);
        SupportedStreamConfig {
            channels: self.channels,
            sample_rate,
            sample_format: self.sample_format,
            buffer_size: self.buffer_size,
        }
    }
pub fn with_sample_rate ( self , sample_rate : SampleRate ) -> SupportedStreamConfig { assert ! ( self min_sample_rate sample_rate sample_rate self max_sample_rate ) ; SupportedStreamConfig { channels : self . channels , sample_rate , sample_format : self . sample_format , buffer_size : self . buffer_size , } }
Retrieve a `SupportedStreamConfig` with the given sample rate and buffer size.
Retrieve a ` SupportedStreamConfig ` with the given sample rate and buffer size .
self
sample_rate
SampleRate
self
sample_rate
SampleRate