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/
> > The following block in os.h needs to be changed for vorbis to work under > Borland:Actually, Mike Smith says it's the right fix for MSVC too. Fixing.> Sqrt domain errors still occur when encoding a full range pure sine > wave. Is anyone else seeing that problem?Found it. I'll commit a fix for that too.> 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.Interesting... decode should not be entering that code at all (but I know what the oversight likely is). Checking/fixing that too. Thanks for the alerts, Chris. Monty --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/