moq_audio/decode/mod.rs
1//! Subscribe to an encoded audio track and decode it to raw PCM.
2//!
3//! The decode counterpart to [`encode`](crate::encode), and the mirror of
4//! `moq-video`'s [`decode`](https://docs.rs/moq-video) module.
5//!
6//! Entry points, high to low level:
7//! - [`Consumer`] subscribes to a track and hands back decoded [`Frame`](crate::Frame)s.
8//! - [`Decoder`] decodes packets you supply (bring your own payloads).
9//!
10//! [`Config`] configures [`Consumer`]'s PCM output layout. The lower-level
11//! [`Decoder`] emits the codec-native sample rate and channel count from the
12//! catalog.
13
14mod consumer;
15mod decoder;
16
17pub use consumer::Consumer;
18pub use decoder::{Config, Decoder};