The DDK includes a sample device driver for the Sound Blaster audio hardware. This sample illustrates how to write drivers for waveform input and output devices, as well as for MIDI input and output devices, and how to write a virtual device (VxD) to detect device contention in Windows enhanced mode. The examples in this chapter are based on the Sound Blaster MIDI output driver.