search for: vorbis_ftoi

Displaying 9 results from an estimated 9 matches for "vorbis_ftoi".

2000 Dec 25
2
Modification requests / question
Hello! 1. You should modify the 'vorbis_ftoi(f)' for the undefinied OS/compiler in the 'os.h' on this way: old: static int vorbis_ftoi(double f){ return (int)(f+.5); } new: #define vorbis_ftoi(f) ((int)(f+.5f)) Because in some cases we don't use this function, and the compiler writes many error messages. 2. Could you wr...
2001 Jan 29
1
Mac OS X/Darwin patch for libvorbis
...efined(__BEOS__) +#define VORBIS_FPU_CONTROL /* both GCC and MSVC are kinda stupid about rounding/casting to int. Because of encapsulation constraints (GCC can't see inside the asm block and so we end up doing stupid things like a store/load that @@ -109,27 +117,13 @@ static inline int vorbis_ftoi(double f){ __asm__("fistl %0": "=m"(i) : "t"(f)); return(i); } - -#else -/* this is for beos */ - -typedef int vorbis_fpu_control; -static int vorbis_ftoi(double f){ - return (int)(f+.5); -} - -/* We don't have special code for this compiler/arch, so do it...
2002 Jan 22
2
Peak value
Hi, While testing ReplayGain (so it could be related to a bug), I noticed the following gain comments for a file: RG_PEAK=1.71580 RG_RADIO=-7.91 dB RG_AUDIOPHILE=-6.72 dB I've never seen such a large peak. Not that I've looked much, nor have I analyzed the file further. I just thought I should mention it. :) The file is the track Board Burner by Mixmaster Mike, available at:
2000 Nov 07
1
More BeOS woe
...os.h:94: inconsistent operand constraints in an `asm' /Be3/Source/CVS/vorbis/lib/os.h:94: inconsistent operand constraints in an `asm' /Be3/Source/CVS/vorbis/lib/os.h:94: inconsistent operand constraints in an `asm' (yes they are five different errors) line 94 is the asm line in vorbis_ftoi __asm__("fistl %0": "=m"(i) : "t"(f)); I'm totally out of my depth when it comes to asm unless its on OS/390, and I've never used inline assembler before, so I need help. Dave --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homep...
2002 Jan 03
3
Suggestion for libvorbisfile: scaling
I've been experimenting with the ideas of Replay Gain[1] and find that ogg123 doesn't have a way of specifying the scaling applied to replayed samples (like -f in mpg123). Looking at libvorbisfile, I see no function exactly matching this possibly desirable behaviour. ov_read() scales by either 128 (byte output) or 32768 (word output), but there's nothing in between. ov_read_float()
2008 May 20
2
Patch to compile libvorbis on Windows x64
...fies this file so libvorbis will compile for Windows x64. Tested with Visual C++ 2008 Express (x86_x64 compiler from current Windows SDK; 15.00.21022.08), seems to be working fine with no other issues so far. Important: As you can see in the patch, I also changed the default implementation for vorbis_ftoi() to do correct rounding with negative numbers. If this function is only used for positive numbers or the round-to-greater behavior was intentional, please remove that of my patch! -Markus- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: li...
2002 Dec 27
1
Vorbisgain in ogg123
I'm considering patching my copy of ogg123 to support vorbisgain tags. Is there any interest in folding this sort of patch into the main line ogg123? Has anyone done this already (or to another command line ogg player)? John --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to
2000 Dec 15
2
Ports
...dif #ifndef __GNUC__ -#ifdef _WIN32 +#if defined(_WIN32) || defined(__WATCOMC__) # include <malloc.h> # define rint(x) (floor((x)+0.5)) #endif @@ -116,7 +116,7 @@ typedef int vorbis_fpu_control; -#ifdef _WIN32 +#if defined(_WIN32) || defined(__WATCOMC__) static __inline int vorbis_ftoi(double f){ int i; ===== CUT HERE ==================================================== And this for vorbis-tools: Index: oggenc/audio.c =================================================================== RCS file: /usr/local/cvsroot/vorbis-tools/oggenc/audio.c,v retrieving revision 1.5 di...
2001 Oct 27
3
vorbis won't compile as a Framework
When I tried to compile the vorbis module as a Framework, using ProjectBuilder, I got 1058 warnings (excess elements in scalar initializer, near initialization for ''psy_set0.toneatt', 'vorbis_ftoi' defined but not used, unused variable 'k', braces around scalar initializer, and so on) and 65 errors. Some examples of errors: ------- vorbis/lib/psytune.c: undefined type, found 'vp_part': static vp_part _vp_part0[]={ { 1,9e10f, 9e10f, 1.f,9999.f}, { 9999,...