Most of the low-level waveform audio functions return error codes. Use these functions to convert the error codes returned from waveform functions into a textual description of the error:
waveInGetErrorText
Retrieves a textual description of a specified waveform input error.
waveOutGetErrorText
Retrieves a textual description of a specified waveform output error.