home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
mmpm21tk.zip
/
TK
/
H
/
MIDI.H
< prev
next >
Wrap
C/C++ Source or Header
|
1992-06-24
|
2KB
|
59 lines
/*static char *SCCSID = "@(#)midi.h 13.11 92/04/13";*/
/**************************START OF SPECIFICATIONS **************************/
/* */
/* Module NAME: MIDI.H */
/* */
/* */
/* OS/2 2.0 Multimedia Extensions Midi structures and definitions */
/* */
/* Copyright (c) International Business Machines Corporation 1990,1991 */
/* All Rights Reserved */
/************************** END OF SPECIFICATIONS ***************************/
#define STATUS_BIT 0x80
#define TRACK_OFF 0
#define TRACK_ON 1
#define NORMAL_SYSEX 0xf0
#define ESCAPE_SYSEX 0xf7
#define META 0xff
/* Meta stuff */
/* user defined messages for IO PROC */
#define MMIO_SEQ MMIOM_USER + 1
#define MMIO_MERGE MMIOM_USER + 2
#define MMIO_FROM_SEQ MMIOM_USER + 3
#define MMIO_TIMED_READ MMIOM_USER + 4
#define MMIO_SET_TRACKS MMIOM_USER + 5
#define MMIO_FORMAT_0 MMIOM_USER + 6
#define MMIO_GETHEADER MMIOM_GETHEADER
#define MMIOM_GETFILELENGTH MMIOM_USER + 10
#define MMIOM_GETTRACKLENGTH MMIOM_USER + 11
#pragma pack(1)
typedef struct _MIDIHEADER { /* midiheader */
CHAR chHeaderChunk[ 4 ];
DWORD dwHeaderLength;
WORD wFormat;
WORD wNumTracks;
WORD wDivision;
void *vpAdditionalInformation;
} MIDIHEADER;
typedef struct _MMMIDIHEADER { /* mmmidiheader */
DWORD dwHeaderLength; /* Length in Bytes */
DWORD dwContentType; /* Image content */
DWORD dwMediaType; /* type of media */
MIDIHEADER midiheader; /* header */
} MMMIDIHEADER;
#pragma pack()
typedef MMMIDIHEADER *PMMMIDIHEADER;