[vorbis-dev] Borland modification

Chris Craig chris3 at cs.mun.ca
Tue Aug 22 18:54:10 PDT 2000



The following block in os.h needs to be changed for vorbis to work under
Borland:

Original:

#ifndef __GNUC__
#ifdef _WIN32
#  define alloca(x) (_alloca(x))
#  define rint(x)   (floor((x)+0.5))
#endif
#endif

New: 

#ifndef __GNUC__
#ifdef _WIN32
#  ifdef __BORLANDC__
#    include <malloc.h>
#  else
#    define alloca(x) (_alloca(x))
#  endif
#  define rint(x)   (floor((x)+0.5))
#endif
#endif

Sqrt domain errors still occur when encoding a full range pure sine
wave.  Is anyone else seeing that problem?

An exception occasionally occurs on line 1251 of smallft.c:
   if(l->trigcache)free(l->trigcache);
when calling ov_clear for vorbisfile.  It seems to occur for the
new higher bitrate files.  The command line tools do not seem to cause
the exception.  Using old beta 1 code works fine.

Chris
http://www.goldwave.com

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/



More information about the Vorbis-dev mailing list