[vorbis] ov_pcm_total() returns always 0 after ov_open_callbacks()...

Michael Smith msmith at labyrinth.net.au
Sun Mar 2 16:07:37 PST 2003



Mike <just.me at aon.at> said:

> Hi Folks,
> 
> i implemented the required callback funktions to open an ogg file from
> memory.
> Now ov_pcm_total() returns always 0, strange thing about is that
> ov_pcm_total does not call any of the callback funktions.
> I also like to mention that ov_info (which uses the read and seek callback
> funktions) delivers correct values. Thats why i doubt that there's an error
> in (the rather simple) callback funktions...

Do your callbacks support seeking? If not, that's why - obviously, without
seeking, it can't figure out how long the stream is.

If you DO support seeking, perhaps you've got some other bug in your
callback(s)? Can you show us the tell and seek callbacks you've implemented?

Mike

--- >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-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 mailing list