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.

65 lines
3.0 KiB

  1. WDM Audio Sample Code Notes
  2. ------------------------------------------------------------------------------
  3. This directory contains several samples of WDM audio drivers and miniports.
  4. Each of these is contained within a subdirectory as indicated below:
  5. STDUNK:
  6. This directory contains source code for basic standard unknown support that
  7. linked into the other WDM audio samples. This facilitates the use of COM-like
  8. constructs in the WDM audio drivers.
  9. UART:
  10. This directory contains source for a WDM audio miniport to driver a UART type
  11. device. This sample shows some of the basics of how one might go about constructing
  12. WDM audio miniport. Note that this miniport sample is only a piece of a complete
  13. driver and simply compiles to a library that may be linked with additional code
  14. to form a complete driver.
  15. FMSYNTH:
  16. The fmsynth directory contains source code for a miniport for FM synthesizer
  17. devices. This sample shows some of the miniport basics and, as with the UART
  18. miniport sample, can serve as a starting point for customization if the system
  19. supplied miniports for UART and FMSYNTH do not meet your needs. This miniport
  20. is not a complete driver and the library built from this sample needs to be linked
  21. with additional code to form a complete driver.
  22. MPU401:
  23. The mpu401 directory contains sample code for a 'stand-alone' MPU401 driver.
  24. This driver, when combined with either the system supplied UART miniport or the
  25. UART miniport sample from this DDK, forms a complete MPU401 WDM audio driver.
  26. The driver is currently setup to link with the DDK UART miniport sample driver.
  27. Simple changes can be made to the 'sources' file within the mpu401 directory to
  28. enable the driver to utilize the system supplied UART miniport.
  29. SB16:
  30. This directory contains a complete WDM audio sample driver for SB16 type devices.
  31. The driver shows examples of how to utilize several miniport drivers to form a
  32. complete driver solution that includes wave audio, mixer topology support, et cetera.
  33. The driver can be installed using the INF provided in the SB16 directory.
  34. ------------------------------------------------------------------------------
  35. Build Notes:
  36. Several of the sample drivers rely on linking to stdunk.lib. This lib is
  37. generated from the code within the stdunk subdirectory. So, at least initially,
  38. it is probably best to build from the ntddk\src\audio directory to ensure that
  39. all of the samples and libs are built and are current.
  40. Install Notes:
  41. The INF included in the ntddk\src\audio\sb16 directory (mssb16.inf) can
  42. be used to install the SB16 sample driver after it has been built. Simply copy the
  43. INF and the driver binary to a floppy disk. You can then install from that
  44. floppy. Once the driver has been installed successfully with the INF, you
  45. can simply drop updated driver binaries into \windows\system32\drivers
  46. on the target machine and reboot to test the new driver (provided that you
  47. are not also making INF changes).