<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<big><small><font face="Courier"><small>Hi,<br>
<br>
a newbie query about a potential bug in VorbisLib (I tried using
bugzilla with no success):<br>
<br>
My problem is that I encountered a divide by zero exception that I
tracked down to bark_noise_hybridmp()<br>
in PSY.C. I don't pretend to know what </small></font></small></big><big><small><font
 face="Courier"><small>bark_noise_hybridmp() does but there are a few
instances<br>
of the following in that routine: </small></font></small></big><big><small><font
 face="Courier"><small><br>
<br>
&nbsp; D = tN * tXX - tX * tX;<br>
&nbsp; R = (A + x * B) / D;<br>
<br>
When I prevented R from being calculated if D == 0 the problem went
away and the resultant OGG<br>
file could still be played by WinAmp.<br>
<br>
</small></font></small></big><big><small><font face="Courier"><small>I've
successfully built all v1.0.1 libraries (ogg, vorbis, vorbisenc &amp;
vorbisfile) on winXP<br>
with borland C++ builder v6. I successfully built versions of oggenc
&amp; oggdec to test my<br>
builds of these libraries and confirmed resultant OGG files with WinAmp.<br>
<br>
The problem has only occurred on a couple of WAV audio files at this
time. One was a WAV derived<br>
from an MP3 that was decoded by LAME and the other was audio captured
from my PC's line in using<br>
DirectSound (v9).<br>
<br>
I hope this makes sense,<br>
<br>
John<br>
</small></font></small></big>
</body>
</html>