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.

150 lines
7.1 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. sndblst.h
  5. Abstract:
  6. This include file defines constants and types for
  7. the Sound blaster card.
  8. This header file is shared between the low level driver and the
  9. kernel driver.
  10. Revision History:
  11. --*/
  12. #define SOUND_DEF_DMACHANNEL 1 // DMA channel no
  13. #define SOUND_DEF_DMACHANNEL16 5 // DMA channel no 5
  14. #define SOUND_DEF_INT 7
  15. #define SOUND_DEF_PORT 0x220
  16. #define SOUND_DEF_MPU401_PORT 0x330
  17. #define NUMBER_OF_SOUND_PORTS (0x10)
  18. #define NUMBER_OF_MPU401_PORTS (0x02)
  19. /*
  20. ** Registry value names
  21. */
  22. #define SOUND_REG_DMACHANNEL16 (L"DmaChannel16")
  23. #define SOUND_REG_MPU401_PORT (L"MPU401 Port")
  24. #define SOUND_REG_DSP_VERSION (L"DSP Version")
  25. #define SOUND_REG_REALBUFFERSIZE (L"Actual Dma Buffer Size")
  26. /*
  27. ** Sound blaster midi mappings
  28. */
  29. #define SNDBLST_MAPPER_OPL3 TEXT("SNDBLST OPL3")
  30. #define SNDBLST_MAPPER_ADLIB TEXT("SNDBLST AD LIB")
  31. /*
  32. ** Registry 'return' codes
  33. */
  34. #define SOUND_CONFIG_THUNDER 0x80000001
  35. #define SOUND_CONFIG_MPU401_PORT_INUSE 0x80000002
  36. #define SOUND_CONFIG_BAD_MPU401_PORT 0x80000003
  37. /*
  38. ** String ids (strings in sndblst.dll)
  39. */
  40. #define IDS_AUX_LINE_PNAME 100
  41. #define IDS_AUX_CD_PNAME 101
  42. #define IDS_SYNTH_PNAME 102
  43. #define IDS_WAVEIN_PNAME 103
  44. #define IDS_WAVEOUT_PNAME 104
  45. #define IDS_MIXER_PNAME 105
  46. #define IDS_CONTROL_AGCMIC_LONG_NAME 106
  47. #define IDS_CONTROL_AGCMIC_SHORT_NAME 107
  48. #define IDS_CONTROL_METERRECORD_LONG_NAME 108
  49. #define IDS_CONTROL_METERRECORD_SHORT_NAME 109
  50. #define IDS_CONTROL_MUTEAUX_LONG_NAME 110
  51. #define IDS_CONTROL_MUTEAUX_SHORT_NAME 111
  52. #define IDS_CONTROL_MUTEINTERNAL_LONG_NAME 112
  53. #define IDS_CONTROL_MUTEINTERNAL_SHORT_NAME 113
  54. #define IDS_CONTROL_MUTELINEOUT_LONG_NAME 114
  55. #define IDS_CONTROL_MUTELINEOUT_SHORT_NAME 115
  56. #define IDS_CONTROL_MUTEMIC_SHORT_NAME 116
  57. #define IDS_CONTROL_MUTEMIC_LONG_NAME 117
  58. #define IDS_CONTROL_MUTEMIDIOUT_LONG_NAME 118
  59. #define IDS_CONTROL_MUTEMIDIOUT_SHORT_NAME 119
  60. #define IDS_CONTROL_MUTEWAVEOUT_LONG_NAME 120
  61. #define IDS_CONTROL_MUTEWAVEOUT_SHORT_NAME 121
  62. #define IDS_CONTROL_MUXLINEOUT_LONG_NAME 122
  63. #define IDS_CONTROL_MUXLINEOUT_SHORT_NAME 123
  64. #define IDS_CONTROL_MUXWAVEIN_LONG_NAME 124
  65. #define IDS_CONTROL_MUXWAVEIN_SHORT_NAME 125
  66. #define IDS_CONTROL_PEAKVOICEINAUX_LONG_NAME 126
  67. #define IDS_CONTROL_PEAKVOICEINAUX_SHORT_NAME 127
  68. #define IDS_CONTROL_PEAKVOICEINMIC_LONG_NAME 128
  69. #define IDS_CONTROL_PEAKVOICEINMIC_SHORT_NAME 129
  70. #define IDS_CONTROL_PEAKWAVEINAUX_LONG_NAME 130
  71. #define IDS_CONTROL_PEAKWAVEINAUX_SHORT_NAME 131
  72. #define IDS_CONTROL_PEAKWAVEININTERNAL_LONG_NAME 132
  73. #define IDS_CONTROL_PEAKWAVEININTERNAL_SHORT_NAME 133
  74. #define IDS_CONTROL_PEAKWAVEINMIC_LONG_NAME 134
  75. #define IDS_CONTROL_PEAKWAVEINMIC_SHORT_NAME 135
  76. #define IDS_CONTROL_PEAKWAVEOUT_LONG_NAME 136
  77. #define IDS_CONTROL_PEAKWAVEOUT_SHORT_NAME 137
  78. #define IDS_CONTROL_VOICEINMUX_LONG_NAME 138
  79. #define IDS_CONTROL_VOICEINMUX_SHORT_NAME 139
  80. #define IDS_CONTROL_VOLBASS_LONG_NAME 140
  81. #define IDS_CONTROL_VOLBASS_SHORT_NAME 141
  82. #define IDS_CONTROL_VOLLINEOUTAUX_LONG_NAME 142
  83. #define IDS_CONTROL_VOLLINEOUTAUX_SHORT_NAME 143
  84. #define IDS_CONTROL_VOLLINEOUTINTERNAL_LONG_NAME 144
  85. #define IDS_CONTROL_VOLLINEOUTINTERNAL_SHORT_NAME 145
  86. #define IDS_CONTROL_VOLLINEOUTMIC_LONG_NAME 146
  87. #define IDS_CONTROL_VOLLINEOUTMIC_SHORT_NAME 147
  88. #define IDS_CONTROL_VOLLINEOUTMIDIOUT_LONG_NAME 148
  89. #define IDS_CONTROL_VOLLINEOUTMIDIOUT_SHORT_NAME 149
  90. #define IDS_CONTROL_VOLLINEOUTWAVEOUT_LONG_NAME 150
  91. #define IDS_CONTROL_VOLLINEOUTWAVEOUT_SHORT_NAME 151
  92. #define IDS_CONTROL_VOLLINEOUT_LONG_NAME 152
  93. #define IDS_CONTROL_VOLLINEOUT_SHORT_NAME 153
  94. #define IDS_CONTROL_VOLRECORD_LONG_NAME 154
  95. #define IDS_CONTROL_VOLRECORD_SHORT_NAME 155
  96. #define IDS_CONTROL_VOLTREBLE_LONG_NAME 156
  97. #define IDS_CONTROL_VOLTREBLE_SHORT_NAME 157
  98. #define IDS_CONTROL_VOLVOICEINAUX_LONG_NAME 158
  99. #define IDS_CONTROL_VOLVOICEINAUX_SHORT_NAME 159
  100. #define IDS_CONTROL_VOLVOICEINMIC_LONG_NAME 160
  101. #define IDS_CONTROL_VOLVOICEINMIC_SHORT_NAME 161
  102. #define IDS_CONTROL_VOLWAVEINAUX_LONG_NAME 162
  103. #define IDS_CONTROL_VOLWAVEINAUX_SHORT_NAME 163
  104. #define IDS_CONTROL_VOLWAVEININTERNAL_LONG_NAME 164
  105. #define IDS_CONTROL_VOLWAVEININTERNAL_SHORT_NAME 165
  106. #define IDS_CONTROL_VOLWAVEINMIC_LONG_NAME 166
  107. #define IDS_CONTROL_VOLWAVEINMIC_SHORT_NAME 167
  108. #define IDS_CONTROL_VOLWAVEINMIDIOUT_LONG_NAME 168
  109. #define IDS_CONTROL_VOLWAVEINMIDIOUT_SHORT_NAME 169
  110. #define IDS_DESTLINEOUT_LONG_NAME 170
  111. #define IDS_DESTLINEOUT_SHORT_NAME 171
  112. #define IDS_DESTVOICEIN_LONG_NAME 172
  113. #define IDS_DESTVOICEIN_SHORT_NAME 173
  114. #define IDS_DESTWAVEIN_LONG_NAME 174
  115. #define IDS_DESTWAVEIN_SHORT_NAME 175
  116. #define IDS_SRCAUX_LONG_NAME 176
  117. #define IDS_SRCAUX_SHORT_NAME 177
  118. #define IDS_SRCINTERNALCD_LONG_NAME 178
  119. #define IDS_SRCINTERNALCD_SHORT_NAME 179
  120. #define IDS_SRCMICOUT_LONG_NAME 180
  121. #define IDS_SRCMICOUT_SHORT_NAME 181
  122. #define IDS_SRCMIDIOUT_LONG_NAME 182
  123. #define IDS_SRCMIDIOUT_SHORT_NAME 183
  124. #define IDS_SRCWAVEOUT_LONG_NAME 184
  125. #define IDS_SRCWAVEOUT_SHORT_NAME 185
  126. #define IDS_CONTROL_MIXERWAVEIN_LONG_NAME 186
  127. #define IDS_CONTROL_MIXERWAVEIN_SHORT_NAME 187
  128. #define IDS_CONTROL_VOLGAIN_SHORT_NAME 188
  129. #define IDS_CONTROL_VOLGAIN_LONG_NAME 189