User-mode drivers are responsible for notifying clients upon the completion of various audio operations. Clients indicate the type of notification, if any, they expect when they open a driver instance for waveform, MIDI, or mixer operations. (Refer to MIDM_OPEN, MODM_OPEN, MXDM_OPEN, WIDM_OPEN, and WODM_OPEN messages.) Clients that request notification can specify any of the following notification targets:
Mixer drivers accept only window handles.
User-mode drivers notify clients by calling the DriverCallback function in winmm.dll. This function delivers a message to the client’s notification target. The function also delivers message parameters, if the target type accepts parameters.
Following are the messages user-mode drivers must send to a client if the client has requested notification:
Operations |
Messages |
Waveform Input | |
Waveform Output | |
MIDI Input |
MIM_CLOSE |
MIDI Output | |
Mixer |