This function determines the cause of the audio interrupt and returns the current device status.
AUDIO_STATE PDD_AudioGetInterruptType( void );
An integer indicating the type of interrupt. The defined values are:
This function supports the implementation of the audio PDD.
The PDD reports the status of the playback or record circuitry. The interrupt occurs when the audio DMA passes a buffer boundary. See the AUDIO_STATE return values for the possible states that an interrupt can represent.
AUDIO_STATE is the state of the audio device. This value can represent a state change of either the input or the output circuit or both. The lower 4 bits represents the input status, and the upper 4 bits represents the output status; so if the current interrupt is for both input and output, the values can be combined using the OR operator. However, if the interrupt represents only one circuit, the other 4 bits should remain 0; otherwise, the MDD interprets this as a change or update in the circuit’s status.
This function is declared in the Waveddsi.h header file.