Skip to main content

Module source

Module source 

Source
Expand description

A source of samples in bounded chunks.

Structs§

PcmSource
A Pcm’s samples as a source.
SharedSource
A shared Pcm’s samples as a source that owns its share, so a voice can stream it from anywhere.

Traits§

Source
Something that yields whole frames on request, as a decoder working through a file does. A caller decides how much it holds at once: a read never fills more than the buffer it is given.

Functions§

read_all
Everything source still yields, as one Pcm, within limits.