BRELS_TRACK_HEADER

typedef struct
{
	DWORD dwMagic;
	DWORD dwLength;
} BRELS_TRACK_HEADER, *LPBRELS_TRACK_HEADER;

This is header of the tracks as found in a MIDI file. The track header precedes every track in the file.

Members

Remarks

Due to the difference between the storage method of the file and its memory representation, the byte order of values in each member of the structure is reversed. Use btldw to correct them:

Example

void CorrectTrackHeader(LPBRELS_TRACK_HEADER lpbth)
{
	lpbth->dwMagic = btldw(lpbth->dwMagic);
	lpbth->dwLength = btldw(lpbth->dwLength);
};

Further information

Released in November 19th, 2003
Updated in April 29th, 2004
Property of Breno de Lima Sarmento
Home page: http://www27.brinkster.com/brels
E-mail: [email protected]
ICQ: 78977999 ()