MCI_MAKE_TMSF

The MCI_MAKE_TMSF macro creates a time value in packed tracks/minutes/seconds/frames (TMSF) format from the given tracks, minutes, seconds, and frames values.

DWORD MCI_MAKE_TMSF(
  BYTE tracks,  
  BYTE minutes, 
  BYTE seconds, 
  BYTE frames   
);

Parameters

tracks

Number of tracks.

minutes

Number of minutes.

seconds

Number of seconds.

frames

Number of frames.

Return Values

Returns the time in packed TMSF format.

Remarks

Time in TMSF format is expressed as a DWORD value with the least significant byte containing tracks, the next least significant byte containing minutes, the next least significant byte containing seconds, and the most significant byte containing frames.

The MCI_MAKE_TMSF macro is defined as follows:

#define MCI_MAKE_TMSF(t, m, s, f) ((DWORD)(((BYTE)(t) | \ 
                                  ((WORD)(m) << 8)) | \ 
                                  (((DWORD)(BYTE)(s) | \ 
                                  ((WORD)(f) << 8)) << 16))) 

Requirements

  Windows NT/2000/XP: Included in Windows NT 3.1 and later.
  Windows 95/98/Me: Included in Windows 95 and later.
  Header: Declared in Mmsystem.h; include Windows.h.

See Also

MCI, MCI Macros

Show: