Re: Getting samples in a packet without decoding
[email protected] Tue, 5 Aug 2014 18:07:46 -0700
| Newsgroups | gmane.comp.multimedia.ogg.vorbis.devel |
|---|---|
| Message-ID | <CACrD=+_yqdPuG=bou8wfgUkM7okdqUsmXygG0Z1U-Tev-BLQ-w@mail.gmail.com> |
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 On Tue, Aug 5, 2014 at 6:02 PM, Brendan Bolles <[email protected]> wrote: > On Aug 5, 2014, at 5:40 PM, [email protected] wrote: > >> extern long vorbis_packet_blocksize(vorbis_info *vi,ogg_packet *op); > > > Hey, Monty. I tried that, but the value it returns is bigger than what I end up getting from vorbis_synthesis_pcmout(). Actually, in this file I'm using for testing, vorbis_packet_blocksize() gives me 2048 and vorbis_synthesis_pcmout() gives me 1024 for most packets. > > Thought it might have been because of this: > > http://lists.xiph.org/pipermail/vorbis/2006-May/026355.html > > "The amount of decoded PCM data actually output per block, because of > the overlapping, of course, is different from this." > > > Brendan > > _______________________________________________ > Vorbis-dev mailing list > [email protected] > http://lists.xiph.org/mailman/listinfo/vorbis-dev