Expand description
Where blocks come from and where they go.
An AudioSource fills a caller buffer with exactly one block; an
AudioSink consumes one. A PDM microphone, an I2S codec, a UDP socket
and a WAV file are all one of these, so a pipeline never knows which.
Structs§
- Counting
Sink - Counts what it is given and remembers where the stream has got to.
- Sine
Source - A deterministic test tone: a sine at
freq_hzand peakamplitude, the same on every channel, with timestamps that advance by block duration.
Traits§
- Audio
Sink - Consumes blocks of PCM.
- Audio
Source - Produces fixed-size blocks of PCM into caller memory.