[vorbis-dev] ov_raw_seek doesn't work ?

Michael Smith msmith at labyrinth.net.au
Thu Aug 1 03:02:31 PDT 2002



At 09:49 AM 8/1/02 +0200, you wrote:
>I found a problem with ov_raw_seek function in oggvorbis win32sdk 1.0. 
>When i called this function it returned OV_EINVAL immediatelly. I 
> solved the issue by replacing the ov_raw_seek by ov_pcm_seek, which 
>worked perfectly, but i would like to use the raw variant due to 
>performace reason . Is anybody aware of this strange behaviour ?
>

ov_raw_seek() will return OV_EINVAL for two error conditions:
 1) You're calling it on an unopened stream (i.e. you haven't called
ov_open() or ov_open_callbacks(), though you may have called ov_test()).
 2) you've specified an offset outside the range of the input.

ov_raw_seek() definately works, since it gets called to do the
low-level seek and resync when you call ov_pcm_seek(). Since
you say ov_pcm_seek() works, 1) is unlikely - so the offset you're
specifying is probably wrong. What are you using? 

Michael

<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