Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATSamplesToBeats
CATFloat32 CATSamplesToBeats ( CATUInt32  numSamples,
CATFloat32  sampleRate,
CATFloat32  tempo 
) [inline]

CATSamplesToBeats() converts the number of samples at a given sample rate and tempo into the number of beats

Parameters:
numSamples - number of samples
sampleRate - sample rate (e.g. 44100.0f)
tempo - tempo in bpm
Returns:
CATFloat32 - number of beats (fractional)

Definition at line 88 of file CATMathUtil.h.

References CATASSERT.


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