Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.5 KiB

  1. /***************************************************************************
  2. *
  3. * mixer.h
  4. *
  5. * Copyright (c) 1991-1996 Microsoft Corporation. All Rights Reserved.
  6. *
  7. * This code provides VDD support for SB 2.0 sound output, specifically:
  8. * Mixer Chip CT1335 (not strictly part of SB 2.0, but apps seem to like it)
  9. *
  10. ***************************************************************************/
  11. /*****************************************************************************
  12. *
  13. * #defines
  14. *
  15. *****************************************************************************/
  16. /*
  17. * Mixer Ports
  18. */
  19. #define MIXER_ADDRESS 0x04 // Mixer address port
  20. #define MIXER_DATA 0x05 // Mixer data port
  21. /*
  22. * Mixer Commands
  23. */
  24. #define MIXER_RESET 0x00 // reset mixer to initial state
  25. #define MIXER_MASTER_VOLUME 0x02 // set master volume
  26. #define MIXER_FM_VOLUME 0x06 // set opl2 volume
  27. #define MIXER_CD_VOLUME 0x08 // set cd volume
  28. #define MIXER_VOICE_VOLUME 0x0A // set wave volume
  29. /*****************************************************************************
  30. *
  31. * Function Prototypes
  32. *
  33. *****************************************************************************/
  34. void ResetMixer(void);
  35. void MixerSetMasterVolume(BYTE level);
  36. void MixerSetVoiceVolume(BYTE level);
  37. VOID
  38. MixerDataRead(
  39. BYTE *pData
  40. );
  41. VOID
  42. MixerDataWrite(
  43. BYTE data
  44. );
  45. VOID
  46. MixerAddrWrite(
  47. BYTE data
  48. );