Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATBeatsToSamples
CATFloat32 CATBeatsToSamples ( CATFloat32  numBeats,
CATFloat32  sampleRate,
CATFloat32  tempo 
) [inline]

CATBeatsToSamples() converts the number of beats at a given sample rate and tempo to the number of samples (Frames)

Parameters:
numBeats - number of beats to convert - may be fractional
sampleRate - sample rate (e.g. 44100.0f)
tempo - tempo in bpm
Returns:
CATFloat32 - number of samples (may be fractional)

Definition at line 100 of file CATMathUtil.h.


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