home *** CD-ROM | disk | FTP | other *** search
/ CD-X 1 / cdx_01.iso / demodisc / basq / dualmodp / mixer.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-04  |  1.2 KB  |  58 lines

  1. // ************************************************************************
  2. // *
  3. // *    File        : MIXER.H
  4. // *
  5. // *    Description : Definitions for sound mixer interface
  6. // *
  7. // *    Copyright (C) 1992 Otto Chrons
  8. // *
  9. // ************************************************************************
  10.  
  11. #ifndef __MIXER_H
  12. #define __MIXER_H
  13.  
  14. #ifndef __DSMIDEF_H
  15. #include "dsmidef.h"
  16. #endif
  17.  
  18. enum
  19. {
  20.     MIX_RESET, MIX_MASTERVOL, MIX_DACVOL, MIX_FMVOL, MIX_CDVOL,\
  21.     MIX_MICVOL, MIX_LINEVOL, MIX_STEREO, MIX_FILTEROUT, MIX_FILTERIN,\
  22.     MIX_INPUTLINE, MIX_FM_MODE
  23. };
  24.  
  25. #define MIX_LEFT 0x40
  26. #define MIX_RIGHT 0x80
  27. #define MIX_BOTH 0xC0
  28.  
  29. #define MIX_IN_MIC 1
  30. #define MIX_IN_CD 2
  31. #define MIX_IN_LINE 3
  32. #define MIX_FILTERHIGH 0x40
  33.  
  34. #define MIX_FM_NORMAL 0
  35. #define MIX_FM_LEFT 1
  36. #define MIX_FM_RIGHT 2
  37. #define MIX_FM_MUTE 3
  38.  
  39. #define MIX_STEREO_ON 1
  40. #define MIX_STEREO_OFF 0
  41. #define MIX_MONO 0
  42.  
  43. #define MIX_SBPRO 1
  44.  
  45. #ifdef __cplusplus
  46. extern "C" {
  47. #endif
  48.  
  49. void cdecl mixerInit(uchar type, unsigned iobase);
  50. void cdecl mixerSet(uchar function, uchar value);
  51. uchar cdecl mixerGet(uchar function);
  52.  
  53. #ifdef __cplusplus
  54. }
  55. #endif
  56.  
  57. #endif
  58.