logo
pub const FIX_RATE: FlagSet;
👎 Deprecated since 2.20.0:

Use the associated constants on FlagSet.

Expand description

Use the sample rate of the sink, and possibly ignore the rate the sample spec contains. Usage similar to FIX_FORMAT.

When creating streams with Stream::new_extended(), this flag has no effect. If you specify a format with PCM encoding, and you want the server to choose the sample rate, then you should leave the rate unspecified in the Info object. This also means that you can’t use Info::new_from_sample_spec(), because that function always sets the sample rate.