[Vorbis] help
Michael Smith
msmith at xiph.org
Mon Oct 9 02:42:59 PDT 2006
On 10/9/06, Nagaraj.CG at flextronicssoftware.com
<Nagaraj.CG at flextronicssoftware.com> wrote:
>
> 1.)How can i determine the number of pages in one stream?
If you assume there are no gaps, you can look at the sequence number
of the final page in the stream, and that gives you the number of
pages in total.
It's very common to have a gap between the end of the headers, and the
start of the data, though, so you might want to read the first page
after the headers, and subtract off the sequence number of that page
(then add back on the number of header pages).
To get a completely accurate result, of course, you'll need to scan
the entire stream; it's possible to have gaps at any point.
> 2.)Whether size of page is same with in the whole stream?
Are you asking if each page in the stream has a constant size? Then
no; typically every page will have a slightly different size.
Mike
More information about the Vorbis
mailing list