WAVEFORMAT_MIDI

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This structure describes the waveform audio format for MIDI data.


typedef struct _WAVEFORMAT_MIDI {
  WAVEFORMATEX wfx;
  UINT32 USecPerQuarterNote;
  UINT32 TicksPerQuarterNote;
} WAVEFORMAT_MIDI, *LPWAVEFORMAT_MIDI;

wfx

A standard WAVEFORMATEX (Waveform Audio) structure that most wave formats use. Within this structure, to allow MIDI playback, you must specify the values described in the following table.

Value Description

wFormatTag

WAVE_FORMAT_MIDI

nBlockAlign

sizeof(WAVEFORMAT_MIDI_MESSAGE)

cbSize

WAVEFORMAT_MIDI_EXTRASIZE

USecPerQuarterNote

Microseconds per quarter note of a MIDI file. This parameter helps set the tempo of a MIDI file during playback and works in conjunction with TicksPerQuarterNote to determine how fast a MIDI file plays. If set to 0, the member assumes a value of 500,000 milliseconds (or ½ second per quarter note).

TicksPerQuarterNote

Ticks per quarter note of a MIDI file. This parameter helps set the tempo of a MIDI file during playback and works in conjunction with USecPerQuarterNote to determine how fast a MIDI file plays. If set to 0, the member assumes a value of 96 ticks per quarter note.

Headerwfmtmidi.h
Windows Embedded CEWindows Embedded CE 6.0 and later
Windows MobilePocket PC 2002 and later, Smartphone 2002 and later

Community Additions

Show: