home *** CD-ROM | disk | FTP | other *** search
/ Groovy Bytes: Behind the Moon / groovybytes.iso / GROOVY / SND_TOOL / CDMP16.ZIP / SOURCE.ZIP / CDMI.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-27  |  3.0 KB  |  81 lines

  1. /***************************************************************************/
  2. /*                                                                         */
  3. /*                                                                         */
  4. /*                   (c) 1993,1994 by Kaya Memisoglu                       */
  5. /*                                    aka Marc van Shaney                  */
  6. /*                                                                         */
  7. /* Die kommerzielle Nutzung des Source-Codes ohne meine schriftliche       */
  8. /* Genehmigung ist untersagt. Desweiteren hafte ich für keinerlei          */
  9. /* Schaden den das Programm verursacht.                                    */
  10. /*                                                                         */
  11. /* Geschrieben mit Borland C++ 3.1                                         */
  12. /*     Borland C++ ist eingetragenes Warenzeichen der                      */
  13. /*                                  Borland Inernational INC               */
  14. /*                                                                         */
  15. /*                                                                         */
  16. /* 18.1.1994 - Kaya Memisoglu                                              */
  17. /*                                                                         */
  18. /***************************************************************************/
  19.  
  20. #ifndef __CDMILIB_H
  21. #define __CDMILIB_H
  22.  
  23. #include "sounddrv.h"
  24. #include "ext386.h"
  25.  
  26. #ifndef __SOUND_BLOCK
  27. #define __SOUND_BLOCK
  28. typedef struct {
  29.         unsigned int Speed;
  30.         unsigned int Size;
  31.         unsigned char Bits_per_Sample;
  32.         unsigned char Channels;
  33.         char Reserved[10];
  34.            } Sound_Block;
  35. #endif
  36.  
  37.  
  38.  
  39.  
  40. extern volatile unsigned int  CDMI_Pattern_No;
  41. extern volatile unsigned int  CDMI_Beat_No;
  42. extern volatile unsigned int  CDMI_Entry_No;
  43. extern volatile unsigned int  CDMI_Volume;
  44. extern          unsigned int  CDMI_Channels;
  45. extern volatile unsigned int  CDMI_Tick;
  46. extern          char far     *CDMI_DMA_Address;
  47. extern volatile unsigned int  CDMI_DMA_Size;
  48. extern volatile unsigned int  CDMI_Flags;
  49. extern volatile unsigned long CDMI_Channel_Flags;
  50. extern volatile unsigned int  CDMI_Speed;
  51. extern volatile unsigned int  CDMI_Tempo;
  52. extern          unsigned int  CDMI_Tick_Speed;
  53. extern          l_ptr         CDMI_Song;
  54. extern          unsigned int  CDMI_Version;
  55.  
  56. #ifndef __SONG_FLAGS
  57. #define __SONG_FLAGS
  58.     #define USE_16BIT    512
  59.     #define USE_STEREO    256
  60.     #define QUALITIY_MODE    64
  61.     #define    BREAK_FLAG    16
  62.     #define LOOP_FLAG    1
  63.     #define HIGH_PASS    2
  64.     #define MID_PASS    4
  65.     #define LOW_PASS    8
  66. #endif
  67.  
  68. extern int CDMI_Play_Sample (int,int);
  69. extern int CDMI_Play_Song (int freq,int attr,SoundDrv *);
  70. extern int CDMI_Stop_Song (void);
  71. extern int CDMI_Set_Volume(int);
  72. extern int CDMI_Jump(int);
  73. extern int CDMI_Free_Song(void);
  74. extern int CDMI_Load_MOD(char *);
  75. extern int CDMI_Load_669(char *);
  76. extern int CDMI_Load_S3M(char *);
  77. extern int CDMI_Load_STM(char *);
  78.  
  79.  
  80. #endif
  81.