home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / lucid / lemacs-19.6 / src / libsst.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-10  |  1.5 KB  |  50 lines

  1. /* libsst.h - include file for SPARC sound tools library
  2. **
  3. ** Copyright (C) 1989 by Jef Poskanzer.
  4. **
  5. ** Permission to use, copy, modify, and distribute this software and its
  6. ** documentation for any purpose and without fee is hereby granted, provided
  7. ** that the above copyright notice appear in all copies and that both that
  8. ** copyright notice and this permission notice appear in supporting
  9. ** documentation.  This software is provided "as is" without express or
  10. ** implied warranty.
  11. */
  12.  
  13. #include <sys/ioctl.h>
  14. #ifndef SUNOS4_0_3
  15. #define AUDIO_4_0_3_COMPAT
  16. #define AUDIO_CHIP
  17. #define AMD_CHIP               /* SparcStation 1, 2, IPC, and IPX */
  18. #include <sbusdev/audio_79C30.h>
  19. #include <multimedia/libaudio.h>
  20. #include <multimedia/audio_device.h>
  21. #else
  22. #include <sbusdev/audioreg.h>
  23. #endif
  24. #include <sun/audioio.h>
  25.  
  26. #define SAMPLES_PER_SECOND 8192
  27.  
  28. int sst_open( );
  29. void sst_close( /* int fd */ );
  30.  
  31. void sst_set_ger( /* int fd, value */ );
  32. void sst_set_gr( /* int fd, value */ );
  33. void sst_set_gx( /* int fd, value */ );
  34.  
  35. void sst_tones( /* int fd, dhz1, dhz2, thz, rhz, usec */ );
  36. void sst_dtmf( /* int fd, char *dial, int usecper, usecpause */ );
  37.  
  38. #ifdef emacs
  39. extern char *sys_errlist[];
  40. extern int errno, sys_nerr;
  41. extern void message ();
  42. # define perror(string) \
  43.     message("audio: %s, %s", string, \
  44.         (errno < sys_nerr) ? sys_errlist[errno] : \
  45.         "unknown")
  46. # define warn(str) message ("audio: %s", (str))
  47. #else /* !emacs */
  48. # define warn(str) fprintf (stderr, "%s\n", (str))
  49. #endif /* emacs */
  50.