Displaying 6 results from an estimated 6 matches for "chris3".
Did you mean:
chris
2000 Aug 31
2
More information on exception
The following block of code produces an exception. The testnew.ogg
file is 10 seconds, containing pure silence encoded using mode E:
http://www.cs.mun.ca/~chris3/testnew.ogg
Other files and modes can cause the exception, but many files work
fine.
#include <stdio.h>
#include "vorbis/vorbisfile.h"
int main()
{
OggVorbis_File ov, ov2;
FILE *f, *f2;
f = fopen("testnew.ogg", "rb");
if (ov_o...
2000 Jul 14
1
Borland Builder
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
2000 Aug 22
2
Borland modification
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
2001 Jan 30
2
Overflow in psy.c
In beta 3 (Windows, libvorbis-1.0beta3.zip, compiled using BCB), I get
a runtime overflow on line 322 when encoding a simple pure tone
(44100Hz, 96kbps, 128kbps, or 160kbps). Changing the float to a double
avoids the problem.
float val=decay[i]*decscale;
float att=fabs(f[i]/val); /// floating point overflow
...
Chris
http://www.goldwave.com
--- >8 ----
List archives:
2001 Sep 28
0
Borland compiler issues
Where can I download stable RC2 source code? I've downloaded the nightly
CVS, but it seems unusable right now. The Windows SDK does not appear
to include source code or Borland compatible libraries.
One thing I've noticed about the nightly CVS code is that the nested
alloca() calls seem to confuse Borland's compiler. I had to change
code in mapping0_forward() from:
2002 Jan 03
3
Adding RC3 support to GoldWave
Here are some minor things I noticed when updating the vorbis module
for GoldWave:
Bitwise.c, line 175 and 207
Warning: Negative unsigned value
ret=-1UL;
Info.c, line 385
Warning: Unreachable code
break;
vorbisfile.c, line 1407
Warning: Call to function with no prototype
int host_endian = host_is_big_endian();
fix: add 'void' to line 1339:
static int host_is_big_endian( void )