|Microsoft DirectX 9.0|
The RhythmToTime method converts rhythm time to music time.
HRESULT RhythmToTime( WORD wMeasure, BYTE bBeat, BYTE bGrid, short nOffset, DMUS_TIMESIGNATURE *pTimeSig, MUSIC_TIME *pmtTime );
Measure of the time to convert.
Beat of the time to convert.
Grid of the time to convert.
Offset from the grid, in music-time ticks, of the time to convert.
Address of a DMUS_TIMESIGNATURE structure containing information about the time signature.
Address of a variable that receives the music time.
If the method succeeds, the return value is S_OK.
If it fails, the method can return E_POINTER.
The method calculates a duration from the supplied measure, beat, grid, and offset, and adds the value in the mtTime member of the DMUS_TIMESIGNATURE structure.
Header: Declared in dmusici.h.