Source code of Windows XP (NT5)
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.

127 lines
3.5 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Copyright (c) 1990 Microsoft Corporation
  3. Module Name:
  4. soundcfg.h
  5. Abstract:
  6. This include file defines common strings and values for sound driver
  7. configuration.
  8. Author:
  9. Robin Speed (RobinSp) 17-Oct-92
  10. Revision History:
  11. --*/
  12. #define SOUND_REG_PORT (L"Port")
  13. #define SOUND_REG_DMACHANNEL (L"DmaChannel")
  14. #define SOUND_REG_INTERRUPT (L"Interrupt")
  15. #define SOUND_REG_INPUTSOURCE (L"Input Source")
  16. #define SOUND_REG_DMABUFFERSIZE (L"Dma Buffer Size")
  17. #define SOUND_REG_CONFIGERROR (L"Configuration Error")
  18. #define SOUND_REG_LOADTYPE (L"Load Type")
  19. #define SOUND_REG_PNPDEVICE (L"PnP Device")
  20. //
  21. // Values for Load Type
  22. //
  23. #define SOUND_LOADTYPE_NORMAL 0x00
  24. #define SOUND_LOADTYPE_CONFIG 0x01 // Fail load but return config data
  25. #define SOUND_REG_SYNTH_TYPE (L"Synth Type")
  26. //
  27. // Values for synth type
  28. //
  29. #define SOUND_SYNTH_TYPE_ADLIB 0x01
  30. #define SOUND_SYNTH_TYPE_OPL3 0x02
  31. #define SOUND_SYNTH_TYPE_NONE 0x03
  32. #define SOUND_MIXER_SETTINGS_NAME (L"Mixer Settings")
  33. //
  34. // Errors
  35. //
  36. #define SOUND_CONFIG_ERROR 0x00000000
  37. #define SOUND_CONFIG_OK 0xFFFFFFFF
  38. #define SOUND_CONFIG_NOCARD 0x00000001
  39. #define SOUND_CONFIG_BADINT 0x00000002
  40. #define SOUND_CONFIG_BADDMA 0x00000003
  41. #define SOUND_CONFIG_BADCARD 0x00000004
  42. #define SOUND_CONFIG_RESOURCE 0x00000005
  43. #define SOUND_CONFIG_BADPORT 0x00000006
  44. #define SOUND_CONFIG_PORT_INUSE 0x00000007
  45. #define SOUND_CONFIG_DMA_INUSE 0x00000008
  46. #define SOUND_CONFIG_INT_INUSE 0x00000009
  47. #define SOUND_CONFIG_NOINT 0x0000000A
  48. #define SOUND_CONFIG_NODMA 0x0000000B
  49. #define PARMS_SUBKEY L"Parameters"
  50. #define SOUND_DEVICES_SUBKEY L"Devices"
  51. #define SOUND_DRIVER_PARMS L"DriverParameters"
  52. #define REG_VALUENAME_LEFTMASTER L"LeftMasterVolumeAtten"
  53. #define REG_VALUENAME_RIGHTMASTER L"RightMasterVolumeAtten"
  54. #define REG_VALUENAME_LEFTLINEIN L"LeftLineInAtten"
  55. #define REG_VALUENAME_RIGHTLINEIN L"RightLineInAtten"
  56. #define REG_VALUENAME_LEFTDAC L"LeftDACAtten"
  57. #define REG_VALUENAME_RIGHTDAC L"RightDACAtten"
  58. #define REG_VALUENAME_LEFTMICMIX L"LeftMicMixAtten"
  59. #define REG_VALUENAME_RIGHTMICMIX L"RightMicMixAtten"
  60. #define REG_VALUENAME_LEFTADC L"LeftADCAtten"
  61. #define REG_VALUENAME_RIGHTADC L"RightADCAtten"
  62. #define REG_VALUENAME_LEFTSYNTH L"LeftSynthAtten"
  63. #define REG_VALUENAME_RIGHTSYNTH L"RightSynthAtten"
  64. //
  65. // Input source selection
  66. //
  67. #define INPUT_LINEIN 0
  68. #define INPUT_AUX 1
  69. #define INPUT_MIC 2
  70. #define INPUT_OUTPUT 3
  71. //
  72. // Default volume settings on initial install
  73. //
  74. #define DEF_ADC_VOLUME 0x24000000
  75. #define DEF_DAC_VOLUME 0x24000000
  76. #define DEF_SYNTH_VOLUME 0x24000000
  77. #define DEF_AUX_VOLUME 0x24000000
  78. #define DEF_MICMIX_VOLUME 0x00000000
  79. /****************************************************************************
  80. Device Types
  81. ***************************************************************************/
  82. //
  83. // Device type flags used in the local info structure
  84. //
  85. #define WAVE_IN 0x01 // Wave in device
  86. #define WAVE_OUT 0x02 // Wave out device
  87. #define MIDI_IN 0x03 // Midi in device
  88. #define MIDI_OUT 0x04 // Midi out device
  89. #define AUX_DEVICE 0x05 // aux device
  90. #define MIXER_DEVICE 0x06 // Mixer device
  91. #define SYNTH_DEVICE 0x07 // Synth device (adlib or opl3)