opusPacketDurationUs
function opusPacketDurationUs(packet): number | undefined;Defined in: audio-player.ts:384
How long an Opus packet plays, in microseconds, from its TOC byte (RFC 6716 §3.1); undefined when it cannot be
read.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
packet |
Uint8Array |
Returns
Section titled “Returns”number | undefined