The MMTIME structure contains timing information for different types of multimedia data.
typedef struct mmtime_tag {
UINT wType;
union {
DWORD ms;
DWORD sample;
DWORD cb;
DWORD ticks;
struct {
BYTE hour;
BYTE min;
BYTE sec;
BYTE frame;
BYTE fps;
BYTE dummy;
BYTE pad[2]
} smpte;
struct {
DWORD songptrpos;
} midi;
} u;
} MMTIME;
Format | Description | ||
---|---|---|---|
TIME_BYTES | Current byte offset from beginning of the file. | ||
TIME_MIDI | MIDI time. | ||
TIME_MS | Time in milliseconds. | ||
TIME_SAMPLES | Number of waveform-audio samples. | ||
TIME_SMPTE | SMPTE (Society of Motion Picture and Television Engineers) time. | ||
TIME_TICKS | Ticks within a MIDI stream. |
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mmsystem.h.
Multimedia Timers Overview, Multimedia Timer Structures