[Vorbis-dev] cheap way of getting number of frames in an ogg_page?

Christoph Rupp crupp
Mon Aug 2 01:42:37 PDT 2004


Hi,

i just wonder if there's a cheap way of getting the number of oggVorbis
pcm frames in an ogg_page, without actually decoding it?

Can i use the granulepos of the page, substract the granulepos of the
previous page? is this always guaranteed to work?

thanks,
Chris


More information about the Vorbis-dev mailing list