[Vorbis] ov_raw_tell() not working properly!

Diaa Sami diaasami at yahoo.com
Tue Aug 16 14:00:21 PDT 2005


I'm working on an application where I need to record
the current playing position and return to it later.
and I need this to be done the most efficient way, so
I used ov_raw_tell() and ov_raw_seek() because the
documentation says they are the best when speed is a
concern.
but the problem is that sometimes ov_raw_tell returns
the same value before and after calling ov_read;
here's an example:

prevPos = ov_raw_tell(&vf);
const long ret = ov_read(&vf, temp_buffer, 4096, 0,
bytesPerSample, 1, &current_section);
currentPos = ov_raw_tell(&vf);

now, if I check, I'll find that prevPos == currentPos,
how could this be true??
I tried the other seeking methods, which are time and
pcm, and none of the did the same, prevPos is never
equal to currentPos.

so how can I solve this?

thanks for your time and effort.


		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 


More information about the Vorbis mailing list