Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATBeatsToSamples
CATFloat64 CATBeatsToSamples ( CATFloat64  numBeats,
CATFloat64  sampleRate,
CATFloat64  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 123 of file CATMathUtil.h.


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