fn valid_config(conf: &StreamConfig, sample_format: SampleFormat) -> bool {
    conf.channels <= MAX_CHANNELS
        && conf.channels >= MIN_CHANNELS
        && conf.sample_rate <= MAX_SAMPLE_RATE
        && conf.sample_rate >= MIN_SAMPLE_RATE
        && sample_format == SUPPORTED_SAMPLE_FORMAT
}
// Whether or not the given stream configuration is valid for building a stream.
Whether or not the given stream configuration is valid for building a stream.
Whether or not the given stream configuration is valid for building a stream .
fn valid_config(conf: &StreamConfig, sample_format: SampleFormat) -> bool {
    conf.channels <= MAX_CHANNELS
        && conf.channels >= MIN_CHANNELS
        && conf.sample_rate <= MAX_SAMPLE_RATE
        && conf.sample_rate >= MIN_SAMPLE_RATE
        && sample_format == SUPPORTED_SAMPLE_FORMAT
}
fn valid_config ( conf : & StreamConfig , sample_format : SampleFormat ) -> bool { conf . channels <= MAX_CHANNELS && conf . channels >= MIN_CHANNELS && conf . sample_rate <= MAX_SAMPLE_RATE && conf . sample_rate >= MIN_SAMPLE_RATE && sample_format == SUPPORTED_SAMPLE_FORMAT }
Whether or not the given stream configuration is valid for building a stream.
Whether or not the given stream configuration is valid for building a stream .
conf
&StreamConfig
sample_format
SampleFormat
conf
&StreamConfig
sample_format
SampleFormat