Constant libpulse_binding::stream::flags::FIX_RATE [−][src]
pub const FIX_RATE: FlagSet=
capi::PA_STREAM_FIX_RATE
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 ::format::Info
object. This also means that you
can't use ::format::Info::new_from_sample_spec
, because that function always sets the
sample rate.