[Vorbis-dev] Getting samples in a packet without decoding
xiphmont at xiph.org
xiphmont at xiph.org
Tue Aug 5 18:07:46 PDT 2014
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 <brendan at fnordware.com> wrote:
> On Aug 5, 2014, at 5:40 PM, xiphmont at xiph.org 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
> Vorbis-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/vorbis-dev
More information about the Vorbis-dev
mailing list