Skip to main content

WS_QUIET

Constant WS_QUIET 

Source
pub(crate) const WS_QUIET: u8 = 0x80;
Expand description

Bit of a header-carrying capture’s second byte that marks where the stream pauses by the sender’s choice. Alone, as [0x01, WS_QUIET] with no Opus, it is sent where a sound ends (and when the session drops after sound): a player plays out what it holds at once rather than waiting for more, and running dry after it is not a late delivery. It is set as well on the silent frame sent right behind that mark, whose Opus carries the end of the sound the encoder held back, so a player appends that frame to the sound rather than taking it for a new one. Never part of n_red, which fits below it (RED_MAX_DISTANCE).