#[non_exhaustive]pub struct AltSetting {Show 19 fields
pub interface_number: u8,
pub alt_setting: u8,
pub endpoint_address: u8,
pub format: AltFormat,
pub channels: u16,
pub subslot_bytes: u8,
pub valid_bits: u8,
pub rate_ranges: Vec<RateRange>,
pub sample_rates: Vec<u32>,
pub sync_type: SyncKind,
pub feedback_endpoint: Option<u8>,
pub max_packet_bytes: usize,
pub service_interval_us: u32,
pub uac_version: UacVersion,
pub endpoint_interval: u8,
pub usage: EndpointUsage,
pub refresh: u8,
pub synch_address: u8,
pub pacing: Option<Pacing>,
}Expand description
One playback configuration on an isochronous OUT alternate. A UAC2 or UAC3 OUT alternate can appear with several implicit-feedback IN alternates. Each entry’s rates apply to the input named by its pacing.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.interface_number: u8§alt_setting: u8§endpoint_address: u8§format: AltFormat§channels: u16§subslot_bytes: u8Bytes per sample on the wire (the UAC bSubslotSize).
valid_bits: u8Significant bits per sample (the UAC bBitResolution).
rate_ranges: Vec<RateRange>§sample_rates: Vec<u32>A representative list of the supported rates (the common audio rates
inside rate_ranges, or the discrete rates themselves).
sync_type: SyncKind§feedback_endpoint: Option<u8>Address of the explicit feedback endpoint tied to this alternate setting, if it has one.
max_packet_bytes: usize§service_interval_us: u32§uac_version: UacVersion§endpoint_interval: u8The endpoint’s bInterval.
usage: EndpointUsageThe endpoint’s usage bits.
refresh: u8The endpoint’s bRefresh.
synch_address: u8The endpoint’s bSynchAddress: the feedback endpoint it names, or 0.
feedback_endpoint can be set while this is 0
(a feedback endpoint found by its usage bits).
pacing: Option<Pacing>How a stream on this alternate setting would be paced, as
StreamFormat::pacing will report it.
None when the library would not stream it with the current
configuration: an asynchronous endpoint without a feedback endpoint
while DacConfig::allow_unsynchronized_async
is off, or one that declares a feedback endpoint that cannot be resolved.