home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / header45.zip / midios2.h < prev    next >
C/C++ Source or Header  |  1999-03-15  |  2KB  |  66 lines

  1. /**************************START OF SPECIFICATIONS **************************/
  2. /*                                                                          */
  3. /* Module NAME:  MIDI.H                                                     */
  4. /*                                                                          */
  5. /*                                                                          */
  6. /* OS/2 2.0 Multimedia Extensions Midi structures and definitions           */
  7. /*                                                                          */
  8. /* Copyright (c) International Business Machines Corporation 1990,1991      */
  9. /*                         All Rights Reserved                              */
  10. /************************** END OF SPECIFICATIONS ***************************/
  11. #ifdef __cplusplus
  12.    extern "C" {
  13. #endif
  14.  
  15.  
  16. #define STATUS_BIT      0x80
  17.  
  18. #define TRACK_OFF       0
  19. #define TRACK_ON        1
  20.  
  21.  
  22. #define NORMAL_SYSEX    0xf0
  23. #define ESCAPE_SYSEX    0xf7
  24. #define META            0xff
  25. /* Meta stuff */
  26.  
  27.  
  28.  
  29. /* user defined messages for IO PROC */
  30.  
  31. #define  MMIO_SEQ          MMIOM_USER + 1
  32. #define  MMIO_MERGE        MMIOM_USER + 2
  33. #define  MMIO_FROM_SEQ     MMIOM_USER + 3
  34. #define  MMIO_TIMED_READ   MMIOM_USER + 4
  35. #define  MMIO_SET_TRACKS   MMIOM_USER + 5
  36. #define  MMIO_FORMAT_0     MMIOM_USER + 6
  37. #define  MMIO_GETHEADER    MMIOM_GETHEADER
  38. #define  MMIOM_GETFILELENGTH MMIOM_USER + 10
  39. #define  MMIOM_GETTRACKLENGTH MMIOM_USER + 11
  40.  
  41. #pragma pack(1)
  42.  
  43. typedef struct _MIDIHEADER {              /* midiheader */
  44.   CHAR            chHeaderChunk[ 4 ];
  45.   ULONG           ulHeaderLength;
  46.   USHORT          usFormat;
  47.   USHORT          usNumTracks;
  48.   USHORT          usDivision;
  49.   void            *vpAdditionalInformation;
  50.   } MIDIHEADER;
  51.  
  52. typedef struct _MMMIDIHEADER {               /* mmmidiheader */
  53.    ULONG           ulHeaderLength;           /* Length in Bytes */
  54.    ULONG           ulContentType;            /* Image content */
  55.    ULONG           ulMediaType;              /* type of media */
  56.    MIDIHEADER      midiheader;               /* header */
  57.    } MMMIDIHEADER;
  58.  
  59. #pragma pack()
  60. typedef MMMIDIHEADER *PMMMIDIHEADER;
  61.  
  62. #ifdef __cplusplus
  63. }
  64. #endif
  65.  
  66.