[vorbis-dev] Problem with seek functions,
charlie wallace
charlie at finitemonkeys.com
Mon Feb 19 14:47:43 PST 2001
i use that configuration for vorbis and it works fine for me. win2k sp1 vc6
sp4 both dynamic and static, so its unlikely because of that...
i saw a similar problem a while ago, but it was to do with two versions
of codec.h one had a larger struct than the other, so when the lib was built
it used one, and one the app was built it used the other which caused a
crash in the seeking since a memset overwrote the callback structure
partially causing it to jump to a NULL address when using them.
i can't remember which struct off the top of my head, it was one of the
block ones, i do remember the missing ptr though, it was called internal
and appeared at the end of the struct, it was in one but not the other..
charlie
> From: OmegaDan <omegadan at thehumbleguys.com>
> Reply-To: vorbis-dev at xiph.org
> Date: Sun, 18 Feb 2001 02:56:17 -0800
> To: vorbis-dev at xiph.org
> Subject: Re: [vorbis-dev] Problem with seek functions,
>
>
> I actually suspect the bug to be in my platform -- Win2k SP1 with VS6 SP4
> -- I've had a couple other problems with it already (I.E. ov_open causes an
> exception in the kernel when used from vorbisfile dynamic but not
> vorbisfile static).
>
> Unfourtantley, my studio equiptment is tied to win2k :)
>
> but thanks for trying to confirm
>
> OD
>
>
> On 14 Feb 2001, Matthijs wrote:
>> Date: 14 Feb 2001 06:14:18 -0800
>> To: vorbis-dev at xiph.org
>> From: Matthijs <creepingdeathnl at metallica.com>
>> Reply-To: vorbis-dev at xiph.org
>> Sender: owner-vorbis-dev at xiph.org
>> Subject: Re: [vorbis-dev] Problem with seek functions,
>>
>> On Mon, 12 February 2001, OmegaDan wrote:
>>
>> [snip code]
>>
>> Hmm, weird.. that does work for me. I only had the trouble that
>> ov_time_tell returned negative infinity
>> after a ov_time_seek to 0 secs. This is my code:
>>
>> function TMainForm.ReadBuf(Buffer: PChar; Size: Longword; var Time:
>> Single): Longword;
>> var BytesRead, Change: Longword;
>> begin
>> BytesRead := 0;
>>
>> Time := ov_time_tell(vf^);
>>
>> if Time < 0 then // check against NAN, -INF
>> Time := 0;
>>
>> repeat
>> Change := ov_read(vf^, @Buffer[BytesRead], Size - BytesRead, 0, 2, 1,
>> StreamNumber);
>> BytesRead := BytesRead + Change;
>> until (Change = 0) or (BytesRead = Size);
>>
>> Result := BytesRead;
>> end;
>>
>> Windows 98/MSVC++6-Dynamic/Borland Delphi 5.
>>
>> Matthijs
>>
>> Only two things are infinite, the universe and human stupidity, and I'm
>> not sure about the former.
>> Albert Einstein (1879 - 1955)
>> ______________________________________________________________________
>> Get your Private, Free E-mail from Metallica at http://mail.metallica.com
>> powered by XingMail. Check out Metallica's Official Web Site at
>> http://www.metallica.com
>>
>> --- >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.
>
--- >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