WAVEFORMAT_MIDI
The WAVEFORMAT_MIDI structure provides the ability to play MIDI files over Windows Mobile-based devices. This structure inputs MIDI information as a special WAV format.
Syntax
typedef struct _WAVEFORMAT_MIDI {
WAVEFORMATEX wfx;
UINT32 USecPerQuarterNote;
UINT32 TicksPerQuarterNote;
} WAVEFORMAT_MIDI, *LPWAVEFORMAT_MIDI;
Members
wfx
A standard WAVEFORMATEX 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.
Requirements
Smartphone: Windows Mobile 2002 and later
OS Versions: Windows CE 3.0 and later
Header: wfmtmidi.h
See Also
Last updated on Friday, April 22, 2005
© 2005 Microsoft Corporation. All rights reserved.
Send feedback on this topic to the authors.