/* * xa_audio.h * * Copyright (C) 1994-1998,1999 by Mark Podlipec. * All rights reserved. * * This software may be freely used, copied and redistributed without * fee for non-commerical purposes provided that this copyright * notice is preserved intact on all copies. * * There is no warranty or other guarantee of fitness of this software. * It is provided solely "as is". The author disclaims all * responsibility and liability with respect to this software's usage * or its effect upon hardware or computer systems. * */ #include "xanim.h" #include #include #include #include "xa_x11.h" #include "xa_ipc.h" #include "xa_ipc_cmds.h" extern xaULONG xa_forkit; /* Rather than spend time figuring out which ones are common * across machine types, just redo them all each time. * Eventually I'll simplify. */ /*********************** SPARC INCLUDES ********************************/ #ifdef XA_SPARC_AUDIO /* Sun 4.1 -I/usr/demo/SOUND/multimedia ??? */ #include #include #include #ifdef SVR4 /* was SOLARIS */ #include #else #include #endif #include #include #endif /*********************** DEC Multimedia Services INCLUDES = **************/ #ifdef XA_MMS_AUDIO /* #ifdef BYTE #undef BYTE #endif #ifdef WORD #undef WORD #endif #ifdef LONG #undef LONG #endif #ifdef UWORD #undef UWORD #endif #ifdef SHORT #undef SHORT #endif */ #include #ifdef XA_MMS_160 #include #endif #endif /*********************** IBM S6000 INCLUDES ******************************/ #ifdef XA_AIX_AUDIO #include #include #include #include #include #include #include #include #endif /*********************** NEC EWS INCLUDES ******************************/ #ifdef XA_EWS_AUDIO #include #include #endif /*********************** SONY NEWS INCLUDES ****************************/ #ifdef XA_SONY_AUDIO #include #ifdef SVR4 #include #else /* SVR4 */ #include #endif #endif /* XA_SONY_AUDIO */ /*********************** NetBSD INCLUDES *******************************/ #ifdef XA_NetBSD_AUDIO #include #include #include #include #include #include #include #endif /*********************** LINUX INCLUDES ********************************/ #ifdef XA_LINUX_AUDIO #include #include #include /* POD NOTE: possibly ???*/ #if defined(__bsdi__) && _BSDI_VERSION < 199510 #include #define SNDCTL_DSP_SYNC DSP_IOCTL_FLUSH #define SNDCTL_DSP_STEREO DSP_IOCTL_STEREO #define SNDCTL_DSP_SPEED DSP_IOCTL_SPEED /* #define SNDCTL_DSP_SAMPLESIZE */ /* #define SNDCTL_DSP_GETBLKSIZE this value is ignored anyway */ #define SOUND_MIXER_READ_DEVMASK MIXER_IOCTL_READ_PARAMS #define SOUND_MIXER_PCM 10 /* to make sure it's ignored */ #define SOUND_MIXER_VOLUME MIXER_IOCTL_SET_LEVELS #define MIXER_WRITE(n) n #define _FILE_DSP "/dev/sb_dsp" #define _FILE_MIXER "/dev/sb_mixer" #else #define _FILE_DSP "/dev/dsp" #define _FILE_MIXER "/dev/mixer" #ifdef __FreeBSD__ #if __FreeBSD__ > 3 #include #else #include #endif #else #include #endif #endif /* end __bsdi__ */ #endif /* end LINUX */ /*********************** SGI INCLUDES **********************************/ #ifdef XA_SGI_AUDIO #include #include #include #include #include #include #endif /*********************** HP INCLUDES ***********************************/ #ifdef XA_HP_AUDIO #include #include #include #include #include #ifdef XA_HP10 #include #include #else /* HPUX 9.x */ #include