Constant libpulse_binding::stream::flags::FIX_CHANNELS[][src]

pub const FIX_CHANNELS: FlagSet = capi::PA_STREAM_FIX_CHANNELS

Use the number of channels and the channel map of the sink, and possibly ignore the number of channels and the map the sample spec and the passed channel map 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 channel count and/or channel map, then you should leave the channels and/or the channel map 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 channel count (but if you only want to leave the channel map unspecified, then ::format::Info::new_from_sample_spec works, because the channel map parameter is optional).