[Vorbis-dev] Getting samples in a packet without decoding
Brendan Bolles
brendan at fnordware.com
Tue Aug 5 18:47:06 PDT 2014
On Aug 5, 2014, at 6:07 PM, xiphmont at xiph.org wrote:
> Oh, I see. yes, that gives you the blocksize of one block. The data
> returned in any given chunk is from overlapping the current block with
> the previous block: prev/4+current/4
Monty, you know such much about this vorbis thing! ;-)
Yep, that works. But what do I do about the first packet? In other words, what do I start prev as? vorbis_packet_blocksize() returns 256 and vorbis_synthesis_pcmout() returns 0.
I guess starting prev at -256 would work?
Brendan
More information about the Vorbis-dev
mailing list