Kernel-mode audio drivers can use the soundlib.lib library. For waveform, MIDI, auxiliary audio, and mixer drivers, soundlib.lib provides the following:
·Functions that the kernel-mode driver can call for initialization, configuration, and synchronization activities.
·A set of dispatch functions that the driver can use for handling IRPs and I/O control codes, which are received from the Windows NT I/O Manager as a result of calls from user-mode drivers.
For information on IRPs and I/O control codes for multimedia drivers, see the Kernel-Mode Drivers Reference.
You can use soundlib.lib to make creating a new kernel-mode driver easier. To use soundlib.lib, link it with your kernel-mode driver. You’ll need to include some or all of the following header files:
devices.h | mtddmix.h |
midi.h | ntddwave.h |
mixer.h | soundcfg.h |
mmsystem.h | soundlib.h |
ntddk.h | synthdrv.h |
ntddaux.h | wave.h |
ntddmidi.h |
If you include soundlib.h, it includes many, but not all, of the other header files listed.
Source code for soundlib.lib is included with this DDK, at the directory path listed in Sample Audio Drivers.
Descriptions of the functions and structures provided by soundlib.lib can be found in the Audio Driver Reference.