Most audio device drivers are interrupt-driven. For example, a waveform output device interrupts when the device needs another data block. A MIDI input device interrupts when the device receives a MIDI event at its input port. Driver code accessed during an interrupt service routine must adhere to the guidelines discussed in the following sections.
Note Audio and video compression and decompression drivers are not typically accessed during interrupts.