[xiph-commits] r7263 - trunk/vorbis/lib
msmith at dactyl.lonelymoon.com
msmith
Thu Jul 22 18:23:41 PDT 2004
Author: msmith
Date: Thu Jul 22 18:23:41 2004
New Revision: 7263
Modified:
trunk/vorbis/lib/scales.h
Log:
Use an ogg_int32_t rather than a plain int32_t, since windows systems don't
have the latter defined. Problem reported by Stephen So.
Modified: trunk/vorbis/lib/scales.h
===================================================================
--- trunk/vorbis/lib/scales.h 2004-07-23 00:52:31 UTC (rev 7262)
+++ trunk/vorbis/lib/scales.h 2004-07-23 01:23:40 UTC (rev 7263)
@@ -11,7 +11,7 @@
********************************************************************
function: linear scale -> dB, Bark and Mel scales
- last mod: $Id: scales.h,v 1.26 2002/07/11 06:40:50 xiphmont Exp $
+ last mod: $Id$
********************************************************************/
@@ -39,7 +39,7 @@
/* Segher was off (too high) by ~ .3 decibel. Center the conversion correctly. */
static float todB(const float *x){
- return (float)((*(int32_t *)x)&0x7fffffff) * 7.17711438e-7f -764.6161886f;
+ return (float)((*(ogg_int32_t *)x)&0x7fffffff) * 7.17711438e-7f -764.6161886f;
}
#define todB_nn(x) todB(x)
More information about the commits
mailing list