Errors are represented by negative values and cannot be combined. This table lists the values that can be returned by all IDirectSound and IDirectSoundBuffer methods. For a list of the error codes each method is capable of returning, see the individual method descriptions.
The request completed successfully.
The request failed because resources, such as a priority level, were already in use by another caller.
The object is already initialized.
The specified wave format is not supported.
The buffer memory has been lost and must be restored.
The control (volume, pan, and so forth) requested by the caller is not available.
An undetermined error occurred inside the DirectSound subsystem.
This function is not valid for the current state of this object.
An invalid parameter was passed to the returning function.
The object does not support aggregation.
No sound driver is available for use.
This value is obsolete and is not used.
The DirectSound subsystem could not allocate sufficient memory to complete the caller's request.
The caller does not have the priority level required for the function to succeed.
The IDirectSound::Initialize method has not been called or has not been called successfully before other methods were called.
The function called is not supported at this time.