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.

164 lines
5.3 KiB

  1. #include <windows.h>
  2. // #include <mmsysver.h>
  3. #include "sbtest.h"
  4. /* MMSYS_VERSION_INFO("sbtest.exe\0","Sound: Basic Test\0", VFT_WINDOWS_APP, 0)
  5. */
  6. Icon ICON sbtest.ico
  7. Menu MENU
  8. begin
  9. popup "&File"
  10. begin
  11. menuitem "E&xit", IDM_EXIT
  12. menuitem "A&bout...\tCtrl+A" IDM_ABOUT
  13. end
  14. popup "&Wave"
  15. begin
  16. menuitem "Play &Wave..." IDM_PLAYWAVE
  17. menuitem "sndPlaySound..." IDM_SNDPLAYSOUND
  18. menuitem SEPARATOR
  19. menuitem "no looping" IDM_LOOPOFF, CHECKED
  20. menuitem "2 loops" IDM_LOOP2
  21. menuitem "100 loops" IDM_LOOP100
  22. menuitem "Break loop" IDM_LOOPBREAK
  23. menuitem SEPARATOR
  24. menuitem "&Position..." IDM_POSITION
  25. menuitem "&Volume..." IDM_VOLUME
  26. menuitem "&AuxVolume..." IDM_AUX_VOLUME
  27. menuitem "&Reset" IDM_RESET
  28. menuitem "Pause" IDM_PAUSE
  29. menuitem "Resume" IDM_RESUME
  30. menuitem SEPARATOR
  31. menuitem "Record..." IDM_RECORD
  32. end
  33. popup "&MIDI Output"
  34. begin
  35. popup "Device"
  36. begin
  37. menuitem "0" IDM_D0
  38. menuitem "1" IDM_D1
  39. menuitem "2" IDM_D2
  40. menuitem "3" IDM_D3
  41. menuitem "4" IDM_D4
  42. menuitem "5" IDM_D5
  43. menuitem "6" IDM_D6
  44. menuitem "7" IDM_D7
  45. menuitem "8" IDM_D8
  46. menuitem "9" IDM_D9
  47. menuitem "10" IDM_D10
  48. menuitem "11" IDM_D11
  49. menuitem "12" IDM_D12
  50. menuitem "13" IDM_D13
  51. menuitem "14" IDM_D14
  52. menuitem "15" IDM_D15
  53. end
  54. menuitem SEPARATOR
  55. popup "Channel"
  56. begin
  57. menuitem "0" IDM_C0, CHECKED
  58. menuitem "1" IDM_C1
  59. menuitem "2" IDM_C2
  60. menuitem "3" IDM_C3
  61. menuitem "4" IDM_C4
  62. menuitem "5" IDM_C5
  63. menuitem "6" IDM_C6
  64. menuitem "7" IDM_C7
  65. menuitem "8" IDM_C8
  66. menuitem "9" IDM_C9
  67. menuitem "10" IDM_C10
  68. menuitem "11" IDM_C11
  69. menuitem "12" IDM_C12
  70. menuitem "13" IDM_C13
  71. menuitem "14" IDM_C14
  72. menuitem "15" IDM_C15
  73. end
  74. menuitem "Instrument" IDM_INSTRUMENT
  75. menuitem "Keyboard" IDM_KEYBOARD
  76. end
  77. popup "M&IDI Input"
  78. begin
  79. popup "Device"
  80. begin
  81. menuitem "0" IDM_I0
  82. menuitem "1" IDM_I1
  83. menuitem "2" IDM_I2
  84. menuitem "3" IDM_I3
  85. menuitem "4" IDM_I4
  86. menuitem "5" IDM_I5
  87. menuitem "6" IDM_I6
  88. menuitem "7" IDM_I7
  89. menuitem "8" IDM_I8
  90. menuitem "9" IDM_I9
  91. menuitem "10" IDM_I10
  92. menuitem "11" IDM_I11
  93. menuitem "12" IDM_I12
  94. menuitem "13" IDM_I13
  95. menuitem "14" IDM_I14
  96. menuitem "15" IDM_I15
  97. end
  98. menuitem SEPARATOR
  99. menuitem "Start MIDI Input", IDM_STARTMIDIIN
  100. menuitem "Stop MIDI Input", IDM_STOPMIDIIN
  101. end
  102. popup "&Module"
  103. begin
  104. menuitem "Get Device Info" IDM_GETINFO
  105. end
  106. popup "&Debug"
  107. begin
  108. menuitem "Dump MIDI Note Messages" IDM_DUMPNOTES
  109. menuitem "Dump MIDI Patch Changes" IDM_DUMPPATCH
  110. menuitem "Test Rip" IDM_RIP
  111. end
  112. popup "&Options"
  113. begin
  114. menuitem "&Wave Options..." IDM_WAVEOPTIONS
  115. menuitem "&MIDI Options..." IDM_MIDIOPTIONS
  116. end
  117. #if 0
  118. popup "&Profiler"
  119. begin
  120. menuitem "Start" IDM_PROFSTART
  121. menuitem "Stop" IDM_PROFSTOP
  122. end
  123. #endif
  124. end
  125. STRINGTABLE
  126. begin
  127. IDS_APPNAME, "sbtest"
  128. end
  129. AccTable ACCELERATORS
  130. begin
  131. "^A", IDM_ABOUT
  132. end
  133. VOLUME DIALOG 60, 45, 190, 75
  134. CAPTION "Set Volume"
  135. STYLE WS_BORDER | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  136. BEGIN
  137. DEFPUSHBUTTON "OK", 101, 5, 57, 40, 14
  138. GROUPBOX "Current Volume Level", 103, 4, 2, 178, 51
  139. CTEXT "Text", 104, 62, 15, 64, 8
  140. SCROLLBAR 105, 14, 26, 163, 9
  141. RTEXT "Hi", 106, 131, 37, 45, 8
  142. LTEXT "Lo", 107, 15, 38, 36, 8
  143. END
  144. rcinclude about.dlg
  145. rcinclude options.dlg
  146. rcinclude optionsm.dlg
  147. rcinclude record.dlg