[vorbis-dev] ov_raw_seek doesn't work ?
Martin Cesky
martin at scssoft.com
Thu Aug 1 06:45:42 PDT 2002
Oh, we found it finally. We used old header files from rc3, which have
different argument types. Sorry for bothering you, and thank you for
cooperation.
Martin Cesky
Martin Cesky wrote:
> Well, the ov_raw_seek is not calling my seek callback function at all,
> but the pcm_seek is doing that. The ov_raw_seek looks like this:
>
> ov_raw_seek((OggVorbis_File*)snd->stream,0);
>
> snd->stream is the opened file by ov_open_callback
>
> Btw it worked with beta 3, but after getting new version of all dlls,
> it began to act this strange way.
>
> Martin
>
> Michael Smith wrote:
>
>> 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
>>
>>
>>
>> --- >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.
>>
>>
>
>
>
>
> --- >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.
<p><p><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