[Vorbis-dev] Getting samples in a packet without decoding

xiphmont at xiph.org xiphmont at xiph.org
Tue Aug 5 21:03:18 PDT 2014


The first packet after any decode [re]start will not return samples.
It can't; the MDCT output it produces must be lapped with the output
of the following packet to produce finished samples.  This is why
granule position is 'the position one past the last sample produced
decoding a packet', essentially the sample past the middle of the
window.

Trimming only happens at the stream beginning/ending.

Monty


More information about the Vorbis-dev mailing list