doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros
scales.h File Reference
#include <math.h>
#include "os.h"

Go to the source code of this file.

Macros

#define VORBIS_IEEE_FLOAT32   1
 
#define todB_nn(x)   todB(x)
 
#define fromdB(x)   (exp((x)*.11512925f))
 
#define toBARK(n)   (13.1f*atan(.00074f*(n))+2.24f*atan((n)*(n)*1.85e-8f)+1e-4f*(n))
 
#define fromBARK(z)   (102.f*(z)-2.f*pow(z,2.f)+.4f*pow(z,3.f)+pow(1.46f,z)-1.f)
 
#define toMEL(n)   (log(1.f+(n)*.001f)*1442.695f)
 
#define fromMEL(m)   (1000.f*exp((m)/1442.695f)-1000.f)
 
#define toOC(n)   (log(n)*1.442695f-5.965784f)
 
#define fromOC(o)   (exp(((o)+5.965784f)*.693147f))
 

Macro Definition Documentation

#define fromBARK (   z)    (102.f*(z)-2.f*pow(z,2.f)+.4f*pow(z,3.f)+pow(1.46f,z)-1.f)

Definition at line 77 of file scales.h.

#define fromdB (   x)    (exp((x)*.11512925f))

Definition at line 65 of file scales.h.

#define fromMEL (   m)    (1000.f*exp((m)/1442.695f)-1000.f)

Definition at line 79 of file scales.h.

#define fromOC (   o)    (exp(((o)+5.965784f)*.693147f))

Definition at line 85 of file scales.h.

#define toBARK (   n)    (13.1f*atan(.00074f*(n))+2.24f*atan((n)*(n)*1.85e-8f)+1e-4f*(n))

Definition at line 76 of file scales.h.

#define todB_nn (   x)    todB(x)

Definition at line 49 of file scales.h.

#define toMEL (   n)    (log(1.f+(n)*.001f)*1442.695f)

Definition at line 78 of file scales.h.

#define toOC (   n)    (log(n)*1.442695f-5.965784f)

Definition at line 84 of file scales.h.

#define VORBIS_IEEE_FLOAT32   1

Definition at line 25 of file scales.h.