Skip to main content

Module decode

Module decode 

Source
Expand description

Subscribe to an encoded audio track and decode it to raw PCM.

The decode counterpart to encode, and the mirror of moq-video’s decode module.

Entry points, high to low level:

  • Consumer subscribes to a track and hands back decoded Frames.
  • Decoder decodes packets you supply (bring your own payloads).

Config configures Consumer’s PCM output layout. The lower-level Decoder emits the codec-native sample rate and channel count from the catalog.

Structs§

Config
Decoder configuration: the PCM layout to emit, plus the subscription’s latency budget.
Consumer
Subscribe to a moq-mux audio track and emit decoded PCM in the layout declared by Config.
Decoder
Decodes codec packets into interleaved f32 PCM.