Audio-Object Error Values

The following error values may be returned by member functions of the multimedia audio-source and audio-destination objects. If no error occurs, the member functions return NOERROR.

Error value

Description

AUDERR_ALREADYCLAIMED

The IAudio::Claim member function was already called to claim the wave device.

AUDERR_ALREADYSTARTED

The audio object has already started playing or recording data.

AUDERR_BADDEVICEID

A device identifier is invalid.

AUDERR_HANDLEBUSY

The wave device handle is in use on another thread.

AUDERR_INVALIDFLAG

A flag is invalid.

AUDERR_INVALIDHANDLE

A handle is invalid.

AUDERR_INVALIDNOTIFYSINK

An interface type is invalid.

AUDERR_INVALIDPARAM

A parameter is invalid.

AUDERR_NEEDWAVEFORMAT

A wave format that is required to obtain or set the level has not yet been set. The wave format can be set by calling the IAudio::WaveFormatSet member function.

AUDERR_NODRIVER

No driver exists for the audio device.

AUDERR_NOTCLAIMED

The IAudio::Claim member function was not called.

AUDERR_NOTENOUGHDATA

There is insufficient space in the object's internal buffer.

AUDERR_NOTSUPPORTED

The function is not supported.

AUDERR_SYNCNOTALLOWED

Synchronous wave devices, such as the system's speaker driver, are not allowed.

AUDERR_WAVEDEVNOTSUPPORTED

The wave device is not supported.

AUDERR_WAVEFORMATNOTSUPPORTED

The audio device does not allow the application to set the wave format, or the specified wave format is not supported.

AUDERR_WAVENOTENABLED

The wave device is not enabled.


In addition to the error values described in the preceding list, member functions can return error values generated by calls to the Win32 API. For more information, see "Object Levels and Error Values."