Re: Getting samples in a packet without decoding

[email protected] Tue, 5 Aug 2014 17:40:13 -0700
Newsgroups gmane.comp.multimedia.ogg.vorbis.devel
Message-ID <CACrD=+88sYqfuCKdxMAzWpu-7OFayuBSQEQg0d3v9QqB2ye=1A@mail.gmail.com>
On Tue, Aug 5, 2014 at 5:24 PM, Brendan Bolles <[email protected]> wrote:
> Hi everyone, when you have a vorbis packet and then call vorbis_synthesis(), vorbis_synthesis_blockin(), and finally vorbis_synthesis_pcmout(), that last call tells you how many samples are in the packet.  Is there any way to get that information without actually decoding the packet?

extern long vorbis_packet_blocksize(vorbis_info *vi,ogg_packet *op);

should be what you want.