pub struct DecoderOutput {
pub format: AudioFormat,
pub sample_rate: Option<u32>,
pub channels: Option<u32>,
pub latency_max: Option<Duration>,
}Expand description
PCM layout the caller wants out of Decoder::decode_f32 /
AudioConsumer::read. sample_rate and channels None
means “match the codec’s native shape from the catalog”.
Fields§
§format: AudioFormat§sample_rate: Option<u32>§channels: Option<u32>§latency_max: Option<Duration>Upper bound on buffering before skipping a stalled group.
Forwarded to moq_mux::container::Consumer::with_latency: if
a group is stuck and a newer group is more than this far ahead,
the consumer skips. None keeps the moq-mux default of zero,
which skips aggressively. Set to the playout buffer you can
tolerate (typically tens to a few hundred ms) for the best
congestion-vs-quality trade-off. The _max suffix is a
reminder that we never add latency here: the consumer skips
only when newer data is already this far ahead. A companion
latency_min for jitter-buffer padding will land in a follow-up.
Trait Implementations§
Source§impl Clone for DecoderOutput
impl Clone for DecoderOutput
Source§fn clone(&self) -> DecoderOutput
fn clone(&self) -> DecoderOutput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more