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.

109 lines
1.2 KiB

  1. /* WVMAPPER.H */
  2. ;
  3. ;
  4. #define OPEN_PIN 1
  5. #define CLOSE_PIN 2
  6. #define WRITE_PIN 3
  7. #define WVMAPPER_DEVICE_ID 0x77
  8. #define MIXER_CHANNELS 2
  9. #define MIXER_SAMPLE_SIZE 2
  10. #define MIXER_SAMPLE_RATE 44100
  11. struct wod_tag {
  12. HWAVE hWave ;
  13. DWORD dwInstance ;
  14. DWORD dwCallBack ;
  15. DWORD dwFlags ;
  16. } ;
  17. LRESULT _loadds CALLBACK DriverProc
  18. (
  19. DWORD dwId,
  20. HDRVR hDriver,
  21. WORD wMsg,
  22. LPARAM lParam1,
  23. LPARAM lParam2
  24. ) ;
  25. DWORD FAR PASCAL _loadds wodMessage
  26. (
  27. UINT uDevId,
  28. UINT uMsg,
  29. DWORD dwUser,
  30. DWORD dwParam1,
  31. DWORD dwParam2
  32. ) ;
  33. DWORD FAR PASCAL _loadds widMessage
  34. (
  35. UINT uDevId,
  36. UINT uMsg,
  37. DWORD dwUser,
  38. DWORD dwParam1,
  39. DWORD dwParam2
  40. ) ;
  41. MMRESULT wodmGetDevCaps
  42. (
  43. LPWAVEOUTCAPS lpWaveOutCaps,
  44. DWORD dwSize
  45. ) ;
  46. MMRESULT wodmOpen
  47. (
  48. LPWAVEOPENDESC lpWaveOpenDesc,
  49. DWORD Flags
  50. ) ;
  51. MMRESULT wodmClose
  52. (
  53. VOID
  54. ) ;
  55. MMRESULT wodmWrite
  56. (
  57. LPWAVEHDR lpWaveHdr,
  58. DWORD dwSize
  59. ) ;
  60. VOID wodCallBack
  61. (
  62. WORD msg,
  63. DWORD dw1,
  64. DWORD dw2
  65. ) ;
  66. WORD OpenPin
  67. (
  68. LPWAVEFORMAT lpFormat
  69. ) ;
  70. WORD ClosePin
  71. (
  72. WORD PinHandle
  73. ) ;
  74. WORD WritePin
  75. (
  76. LPWAVEHDR lpWaveHdr
  77. ) ;
  78. LRESULT OpenDevice
  79. (
  80. VOID
  81. ) ;
  82. VOID PASCAL FAR _loadds WODCOMPLETEIO
  83. (
  84. LPWAVEHDR lpWaveHdr
  85. ) ;
  86. VOID FAR PASCAL DeviceCallBack
  87. (
  88. VOID
  89. ) ;
  90. extern WORD g_SegText ;