<!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 am wondering if buffer size for my decoding
to pcm can be predicted dependably as follows. So far, the one problem I
have had is when I have played a file of only about 5k. The buffer was a
little less than 10% too small. I "solved" that by padding the result with
an extra 20 percent. However, I have been told that I should be able to
rely on the value of ov_pcm_total.</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><STRONG><FONT face=Arial> char* m_pDataVorbis;<BR> . .
.<BR> OggVorbis_File vf;<BR> . . .<BR> vorbis_info* vi =
ov_info(&vf,-1);<BR> . . .<BR>int pcmTotal = ov_pcm_total(&vf,
-1);<BR>m_pDataVorbis = new char[pcmTotal * vi->channels *
2];</FONT></STRONG></DIV></BODY></HTML>