[Vorbis-dev] Getting samples in a packet without decoding

xiphmont at xiph.org xiphmont at xiph.org
Tue Aug 5 17:40:13 PDT 2014


On Tue, Aug 5, 2014 at 5:24 PM, Brendan Bolles <brendan at fnordware.com> 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.


More information about the Vorbis-dev mailing list