Skip to content

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.

Parameter Type
packet Uint8Array

number | undefined