bwsb.h 4.3 KB

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