home *** CD-ROM | disk | FTP | other *** search
/ Sound, Music & MIDI Collection 2 / SMMVOL2.bin / PROG / BWSB120A.ZIP / INCLUDE / BWSB.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-18  |  4.3 KB  |  196 lines

  1. //──────────────────────────────────────────────────────────────────────────
  2. //                    Bells, Whistles, and Sound Boards
  3. //       Copyright (c) 1993-95, Edward Schlunder. All Rights Reserved.
  4. //══════════════════════════════════════════════════════════════════════════
  5. // BWSB.H - Bells, Whistles, and Sound Boards library declaration file
  6. //          for C/C++.
  7. //
  8. //          Written by Edward Schlunder (1995)
  9. //──────────────────────────────────────────────────────────────────────────
  10. #include <gdmtype.h>
  11.  
  12. extern
  13. #ifdef __cplusplus
  14. "C"
  15. #endif
  16.   int cdecl LoadMSE(char *File,
  17.                     unsigned long FileOff,
  18.                     unsigned char OverRate,
  19.                     unsigned int BufferSize,
  20.                     unsigned int *Addr,
  21.                     unsigned int *IRQ,
  22.                     unsigned int *DMA);
  23. extern
  24. #ifdef __cplusplus
  25. "C"
  26. #endif
  27.   char * cdecl DeviceName(void);
  28.  
  29. extern
  30. #ifdef __cplusplus
  31. "C"
  32. #endif
  33.   void cdecl FreeMSE(void);
  34. extern
  35. #ifdef __cplusplus
  36. "C"
  37. #endif
  38.   unsigned int cdecl StartOutput(unsigned char Channels,
  39.                                   unsigned char Amplify);
  40. extern
  41. #ifdef __cplusplus
  42. "C"
  43. #endif
  44.   void cdecl StopOutput(void);
  45. extern
  46. #ifdef __cplusplus
  47. "C"
  48. #endif
  49.   void cdecl MixForground(void);
  50. extern
  51. #ifdef __cplusplus
  52. "C"
  53. #endif
  54.   int cdecl MixStatus(void);
  55. extern
  56. #ifdef __cplusplus
  57. "C"
  58. #endif
  59.   void cdecl SetAutoMix(char MixFlag);
  60.  
  61.   // Music Routines:
  62. extern
  63. #ifdef __cplusplus
  64. "C"
  65. #endif
  66.   void cdecl StartMusic(void);
  67. extern
  68. #ifdef __cplusplus
  69. "C"
  70. #endif
  71.   void cdecl StopMusic(void);
  72. extern
  73. #ifdef __cplusplus
  74. "C"
  75. #endif
  76.   void cdecl AmigaHertz(long NewSpeed);
  77. extern
  78. #ifdef __cplusplus
  79. "C"
  80. #endif
  81.   unsigned char cdecl MusicStatus(void);
  82. extern
  83. #ifdef __cplusplus
  84. "C"
  85. #endif
  86.   unsigned char cdecl MusicBPM(unsigned char NewBPM);
  87. extern
  88. #ifdef __cplusplus
  89. "C"
  90. #endif
  91.   unsigned char cdecl MusicTempo(unsigned char NewTempo);
  92. extern
  93. #ifdef __cplusplus
  94. "C"
  95. #endif
  96.   unsigned char cdecl MusicOrder(unsigned char NewOrder);
  97. extern
  98. #ifdef __cplusplus
  99. "C"
  100. #endif
  101.   unsigned char cdecl MusicPattern(unsigned char NewPattern);
  102. extern
  103. #ifdef __cplusplus
  104. "C"
  105. #endif
  106.   unsigned char cdecl MusicRow(void);
  107. extern
  108. #ifdef __cplusplus
  109. "C"
  110. #endif
  111.   unsigned char cdecl MusicLoop(unsigned char LoopEnable);
  112. extern
  113. #ifdef __cplusplus
  114. "C"
  115. #endif
  116.   unsigned char cdecl MusicVolume(unsigned char Vol);
  117.  
  118. extern
  119. #ifdef __cplusplus
  120. "C"
  121. #endif
  122.   void cdecl GetChannelTable(char Channel, int TSeg, int TOff);
  123. extern
  124. #ifdef __cplusplus
  125. "C"
  126. #endif
  127.   int cdecl ChannelPan(unsigned char Channel, unsigned char NewPos);
  128. extern
  129. #ifdef __cplusplus
  130. "C"
  131. #endif
  132.   int cdecl ChannelVU(unsigned char Channel, unsigned char VU);
  133. extern
  134. #ifdef __cplusplus
  135. "C"
  136. #endif
  137.   int cdecl ChannelVol(unsigned char Channel, unsigned char NewVol);
  138. extern
  139. #ifdef __cplusplus
  140. "C"
  141. #endif
  142.   int cdecl ChannelPos(unsigned char Channel, unsigned int NewPos);
  143. extern
  144. #ifdef __cplusplus
  145. "C"
  146. #endif
  147.   void cdecl GetSampleTable(unsigned char Sample, int TSeg, int TOff);
  148. extern
  149. #ifdef __cplusplus
  150. "C"
  151. #endif
  152.   void cdecl GetMainScope(unsigned int *Left, unsigned int *Right);
  153. extern
  154. #ifdef __cplusplus
  155. "C"
  156. #endif
  157.   void cdecl PlaySample(unsigned char Channel,
  158.                         unsigned char Sample,
  159.                         unsigned int Rate,
  160.                         unsigned char Vol,
  161.                         unsigned char Pan);
  162. extern
  163. #ifdef __cplusplus
  164. "C"
  165. #endif
  166.   void cdecl PlayNote(unsigned char Channel,
  167.                       unsigned char Sample,
  168.                       unsigned char Octave,
  169.                       unsigned char Note);
  170. extern
  171. #ifdef __cplusplus
  172. "C"
  173. #endif
  174.   void cdecl LoadGDM(int Handle, long FileOff, int *Flags,
  175.                      GDMHeader *gdmhead);
  176. extern
  177. #ifdef __cplusplus
  178. "C"
  179. #endif
  180.   void cdecl UnloadModule(void);
  181. extern
  182. #ifdef __cplusplus
  183. "C"
  184. #endif
  185.   unsigned char cdecl EmsExist(void);
  186.  
  187. #ifdef __cplusplus
  188. extern "C" int cdecl AllocSample(unsigned char SamNum, SamHeader *SamHead);
  189. extern "C" int cdecl FreeSample(unsigned char SamNum);
  190. extern "C" void cdecl StopBanner(void);
  191. #else
  192. extern int cdecl AllocSample(unsigned char SamNum, SamHeader *SamHead);
  193. extern int cdecl FreeSample(unsigned char SamNum);
  194. extern void cdecl StopBanner(void);
  195. #endif
  196.