Getting samples in a packet without decoding
Brendan Bolles <[email protected]> Tue, 5 Aug 2014 17:24:09 -0700
| Newsgroups | gmane.comp.multimedia.ogg.vorbis.devel |
|---|---|
| Message-ID | <[email protected]> |
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? WebM doesn't store the sample index (granulepos) like Ogg does, so I have to scan through the audio and re-build that information if I want to do sample-accurate seeking. Brendan