<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=4>I wonder if anyone would have a comment on an
experiment I have pretty much completed in my MFC/C++ project. With my
simple libvorbis implementation, ogg decoding works just fine for files
that are 10kb or larger. For anything smaller (actually, I don't have a
9kb file, so <= 8), it seems that I get an inaccurate value for
ov_pcm_total. Though ov_read returns zero, I overflow the buffer and crash
on ov_clear. These are my TRACE statements:</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>>= 10kb:</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>Opening Audio File 'no_0.ogg'<BR>vi->channels =
'2'<BR>vi->rate = '44100'<BR>pcmTotal = '15341'<BR>pcmTotal * vi->channels
* 2 = '61364'<BR>BufferSize = '61364'<BR>dwBufferLength = '61364'<BR>BufferSize
= '61364'<BR>dwBufferLength - BufferSize = '0'</FONT></DIV>
<DIV><FONT face=Arial size=4>------------</FONT></DIV>
<DIV><FONT face=Arial size=4>< 10kb:</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>Opening Audio File 'Steel
guitar_4.ogg'<BR>vi->channels = '2'<BR>vi->rate = '44100'<BR>pcmTotal =
'9876'<BR>pcmTotal * vi->channels * 2 = '39504'<BR>BufferSize =
'39504'<BR>dwBufferLength = '43264'<BR>BufferSize = '39504'<BR>dwBufferLength -
BufferSize = '3760'</FONT></DIV></BODY></HTML>