WAVEFORMAT_MIDI
This structure describes the waveform audio format for MIDI data.
- 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.