Platform SDK: DirectX |
The DirectMusicPerformance.GetTempo method retrieves the tempo at a given time.
object.GetTempo(mtTime As Long, mtUntil As Long) As Double
If the method succeeds, it returns the tempo, in beats per minute. This value is in the range from DMUS_TEMPO_MIN through DMUS_TEMPO_MAX (see CONST_DMUS).
If the method fails, it raises an error, and Err.Number can be set to one of the following values:
DMUS_E_NO_MASTER_CLOCK |
DMUS_E_GET_UNSUPPORTED |
DMUS_E_NOT_FOUND |
DMUS_E_TRACK_NOT_FOUND |