Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CAT/CATMathUtil.h File Reference

CATMathUtil.h File Reference


Detailed Description

Generic math/audio utility functions.

Copyright (c) 2004-2008 by Michael Ellison. See COPYING.txt for the Game Accessibility Suite [GAS] License (MIT License).

Definition in file CATMathUtil.h.

#include "CATInternal.h"
#include <math.h>

Go to the source code of this file.

Functions

CATFloat32 CATLinearToDBValue (CATFloat32 linearVal)
CATFloat32 CATDBValueToLinear (CATFloat32 dbVal)
 CATDBValueToLinear() inverts the above CATLinearToDBValue().
CATFloat32 CATLinearToDBGain (CATFloat32 linearVal)
CATFloat32 CATSampleToDBF (CATFloat32 sample)
CATFloat32 CATSampleToDBFMeter (CATFloat32 sample)
CATFloat32 CATSamplesToBeats (CATUInt32 numSamples, CATFloat32 sampleRate, CATFloat32 tempo)
CATFloat32 CATBeatsToSamples (CATFloat32 numBeats, CATFloat32 sampleRate, CATFloat32 tempo)
CATFloat64 CATSamplesToBeats (CATUInt32 numSamples, CATFloat64 sampleRate, CATFloat64 tempo)
CATFloat64 CATBeatsToSamples (CATFloat64 numBeats, CATFloat64 sampleRate, CATFloat64 tempo)
CATFloat32 CATInterpolateCubic (CATFloat32 *buffer, CATFloat32 position, CATUInt32 bufSize)
CATFloat32 CATInterpolateHermite (CATFloat32 *buffer, CATFloat32 position, CATUInt32 bufSize)
CATFloat32 CATTruncDenormals (CATFloat32 value)
 CATTruncDenormals() truncates denormal floats to 0.
bool CATIsDenormal (CATFloat32 value)
 CATIsDenormal() detects denormal floats.
CATFloat32 CATUndenormal (CATFloat32 value)
 CATUndenormal() adds a tiny value to a float to avoid denormals.
CATFloat32 CATInterpolateLinear (CATFloat32 *buffer, CATFloat32 position, CATUInt32 bufSize)


Generated on Mon Feb 11 04:10:01 2008 for Game Accessibility Suite by doxygen 1.5.4