Re: Getting samples in a packet without decoding

Brendan Bolles <[email protected]> Tue, 5 Aug 2014 18:47:06 -0700
Newsgroups gmane.comp.multimedia.ogg.vorbis.devel
Message-ID <[email protected]>
On Aug 5, 2014, at 6:07 PM, [email protected] 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