[vorbis-dev] Borland Builder

Chris Craig chris3 at cs.mun.ca
Fri Jul 14 13:46:59 PDT 2000



The following modification is needed in os.h to compile under
C++Builder.  It has the alloca prototype in malloc.h.

#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

Encoding a full range pure tone (500Hz) seems to cause a domain error
in sqrt().  Can anyone confirm that under Linux?

Chris

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



More information about the Vorbis-dev mailing list