Expand description
Ogg Vorbis files, over the lewton crate. Besides the samples it keeps what
a loop importer needs: the file’s comments, and where in the sound it is.
seek_page lands on a page, not a sample: the
first page whose end is at or past the frame asked for. The packet after a
seek decodes to nothing, as each overlaps the one before, and
position isn’t known until that page ends. So an
exact boundary seeks to a frame some way before it, reads on until the
position is known and is still before the boundary, and throws away the
frames up to it.
Structs§
- Vorbis
Source - An Ogg Vorbis file’s samples, decoded from its bytes as they are asked for. It
borrows them or owns them, as
Bdoes: a worker that outlives its caller holds anArc<[u8]>.