home *** CD-ROM | disk | FTP | other *** search
/ Dream 44 / Amiga_Dream_44.iso / Linux / Apps / xanim.tgz / xanim / xanim27064 / xa_audio.h < prev    next >
C/C++ Source or Header  |  1997-01-26  |  5KB  |  203 lines

  1.  
  2. /*
  3.  * xa_audio.h
  4.  *
  5.  * Copyright (C) 1994,1995,1996,1997 by Mark Podlipec.
  6.  * All rights reserved.
  7.  *
  8.  * This software may be freely copied, modified and redistributed without
  9.  * fee for non-commerical purposes provided that this copyright notice is
  10.  * preserved intact on all copies and modified copies.
  11.  *
  12.  * There is no warranty or other guarantee of fitness of this software.
  13.  * It is provided solely "as is". The author(s) disclaim(s) all
  14.  * responsibility and liability with respect to this software's usage
  15.  * or its effect upon hardware or computer systems.
  16.  *
  17.  */
  18.  
  19.  
  20. #include "xanim.h"
  21. #include <Intrinsic.h>
  22. #include <StringDefs.h>
  23. #include <Shell.h>
  24.  
  25. #include "xa_x11.h"
  26. #include "xa_ipc.h"
  27. #include "xa_ipc_cmds.h"
  28.  
  29. extern xaULONG xa_forkit;
  30.  
  31. /* Rather than spend time figuring out which ones are common
  32.  * across machine types, just redo them all each time.
  33.  * Eventually I'll simplify.
  34.  */
  35.  
  36.  
  37. /*********************** SPARC INCLUDES ********************************/
  38. #ifdef XA_SPARC_AUDIO
  39. /* Sun 4.1 -I/usr/demo/SOUND/multimedia ??? */
  40. #include <errno.h>
  41. #include <fcntl.h>
  42. #include <stropts.h>
  43. #ifdef SVR4         /* was SOLARIS */
  44. #include <sys/audioio.h>
  45. #else
  46. #include <sun/audioio.h>
  47. #endif
  48. #include <sys/file.h>
  49. #include <sys/stat.h>
  50. #endif
  51.  
  52. /*********************** DEC Multimedia Services INCLUDES = **************/
  53. #ifdef XA_MMS_AUDIO
  54. /*
  55. #ifdef BYTE
  56. #undef BYTE
  57. #endif
  58. #ifdef WORD
  59. #undef WORD
  60. #endif
  61. #ifdef LONG
  62. #undef LONG
  63. #endif
  64. #ifdef UWORD
  65. #undef UWORD
  66. #endif
  67. #ifdef SHORT
  68. #undef SHORT
  69. #endif
  70. */
  71. #include <mme/mme_api.h>
  72. #ifdef XA_MMS_160
  73. #include <mme/mmsystem.h>
  74. #endif
  75. #endif
  76.  
  77.  
  78. /*********************** IBM S6000 INCLUDES ******************************/
  79. #ifdef XA_AIX_AUDIO
  80. #include <errno.h>
  81. #include <fcntl.h>
  82. #include <sys/audio.h>
  83. #include <stropts.h>
  84. #include <sys/types.h>
  85. #include <sys/file.h>
  86. #include <sys/stat.h>
  87. #include <sys/param.h>
  88. #endif
  89.  
  90. /*********************** NEC EWS INCLUDES ******************************/
  91. #ifdef XA_EWS_AUDIO
  92. #include <errno.h>
  93. #include <sys/audio.h>
  94. #endif
  95.  
  96. /*********************** SONY NEWS INCLUDES ****************************/
  97. #ifdef XA_SONY_AUDIO
  98. #include <errno.h>
  99. #ifdef SVR4
  100. #include <sys/sound.h>
  101. #else /* SVR4 */
  102. #include <newsiodev/sound.h>
  103. #endif
  104. #endif /* XA_SONY_AUDIO */
  105.  
  106. /*********************** NetBSD INCLUDES *******************************/
  107. #ifdef XA_NetBSD_AUDIO
  108. #include <errno.h>
  109. #include <fcntl.h>
  110. #include <sys/audioio.h>
  111. #include <sys/file.h>
  112. #include <sys/stat.h>
  113. #include <sys/ioctl.h>
  114. #include <sys/ioccom.h>
  115. #endif
  116.  
  117.  
  118. /*********************** LINUX INCLUDES ********************************/
  119. #ifdef XA_LINUX_AUDIO
  120. #include <errno.h>
  121. #include <fcntl.h>
  122. #include <sys/time.h>
  123. /* POD NOTE: possibly <machine/soundcard.h> ???*/
  124.  
  125. #if defined(__bsdi__) && _BSDI_VERSION < 199510
  126. #include <i386/isa/sblast.h>
  127. #define SNDCTL_DSP_SYNC DSP_IOCTL_FLUSH
  128. #define SNDCTL_DSP_STEREO DSP_IOCTL_STEREO
  129. #define SNDCTL_DSP_SPEED DSP_IOCTL_SPEED
  130.   /* #define SNDCTL_DSP_SAMPLESIZE */
  131.   /* #define SNDCTL_DSP_GETBLKSIZE this value is ignored anyway */
  132. #define SOUND_MIXER_READ_DEVMASK MIXER_IOCTL_READ_PARAMS
  133. #define SOUND_MIXER_PCM 10 /* to make sure it's ignored */
  134. #define SOUND_MIXER_VOLUME MIXER_IOCTL_SET_LEVELS
  135. #define MIXER_WRITE(n) n
  136. #define _FILE_DSP "/dev/sb_dsp"
  137. #define _FILE_MIXER "/dev/sb_mixer"
  138. #else
  139. #define _FILE_DSP "/dev/dsp"
  140. #define _FILE_MIXER "/dev/mixer"
  141. #ifdef __FreeBSD__
  142. #include <machine/soundcard.h>
  143. #else
  144. #include <sys/soundcard.h>
  145. #endif
  146. #endif  /* end __bsdi__ */
  147.  
  148. #endif /* end LINUX */
  149.  
  150. /*********************** SGI INCLUDES **********************************/
  151. #ifdef XA_SGI_AUDIO
  152. #include <errno.h>
  153. #include <fcntl.h>
  154. #include <stropts.h>
  155. #include <sys/time.h>
  156. #include <audio.h>
  157. #include <math.h>
  158. #endif
  159.  
  160. /*********************** HP INCLUDES ***********************************/
  161. #ifdef XA_HP_AUDIO
  162. #include <fcntl.h>
  163. #include <time.h>
  164. #include <sys/socket.h>
  165. #include <netinet/in.h>
  166. #include <errno.h>
  167. #ifdef XA_HP10
  168. #include <Alib.h>
  169. #include <CUlib.h>
  170. #else /* HPUX 9.x */
  171. #include <audio/Alib.h>
  172. #include <audio/CUlib.h>
  173. #endif
  174. #endif
  175.  
  176. #ifdef XA_HPDEV_AUDIO
  177. #include <stdlib.h>
  178. #include <stdio.h>
  179. #include <fcntl.h>
  180. #include <time.h>
  181. #include <errno.h>
  182. #include <sys/audio.h>
  183. #endif
  184.  
  185.  
  186. /*********************** AF(AudioFile) INCLUDES ************************/
  187. #ifdef XA_AF_AUDIO
  188. #include <AF/audio.h>
  189. #include <AF/AFlib.h>
  190. #include <AF/AFUtils.h>
  191. #endif
  192.  
  193. /*********************** NAS(Network Audio System) INCLUDES *************/
  194. #ifdef XA_NAS_AUDIO
  195. #undef xaBYTE
  196. #include <audio/audiolib.h>
  197. #include <audio/soundlib.h>
  198. #include <audio/Xtutil.h>
  199. #endif
  200.  
  201. /*********************** END   INCLUDES ********************************/
  202.  
  203.