[Vorbis-dev] Ogg Pages Play Time?

Horacio Sanson hsanson at moegi.waseda.jp
Wed Jun 29 16:30:22 PDT 2005


Are all audio pages in a Ogg/Vorbis stream the same size? do they have the 
same playback duration?

I am developing a P2P streaming application where each client has to dowload 
the Ogg/Vorbis pages from other clients (peers) but I need to know how much 
time I have to download the next Ogg/Vorbis page before the playback reaches 
it.

Something like

numCurrPages = Total of Ogg Pages already downloaded
timePerPage	= Playback duration of one Page
curPagePlaying = Current Ogg Page being decoded and played
nextPage		= numCurrPages + 1

download nextPage before (numCurrPages - curPagePlaying)*timePerPage

This way I can give priorities to the pages I have to download for playback.

any coments are appreciated...


Horacio


More information about the Vorbis-dev mailing list