/*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 ];
  ULONG           ulHeaderLength;
  USHORT          usFormat;
  USHORT          usNumTracks;
  USHORT          usDivision;
  void            *vpAdditionalInformation;
  } MIDIHEADER;

typedef struct _MMMIDIHEADER {               /* mmmidiheader */
   ULONG           ulHeaderLength;           /* Length in Bytes */
   ULONG           ulContentType;            /* Image content */
   ULONG           ulMediaType;              /* type of media */
   MIDIHEADER      midiheader;               /* header */
   } MMMIDIHEADER;

#pragma pack()
typedef MMMIDIHEADER *PMMMIDIHEADER;
