[vorbis-dev] Howto use ogg_page_granulepos for exact playback position?

Tibor Kiss tkiss at mavip.hu
Wed Apr 17 00:13:34 PDT 2002



> So what gets written as the granulepos when the page is flushed is the
> last sample that can be fully decoded using that page. So as packets are
> added to the page buffer, of course this number increased, and indeed
> that's how it's passed in in the packet structure. Thus it tells you how
> many samples have been encoded assuming you flush the page now.
>
> Is that what you were asking?

Exactly.
In this context all the time when a page is flushed I have a moment to
calculate what I needed.
Thus the ogg_page_granulepos is just right for me.

Thank you, Rillian

Tibor

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list