DirectX SDK

DirectX7.DirectSoundCreate

The DirectX7.DirectSoundCreate method created a DirectSound object.

object.DirectSoundCreate(guid As String) As DirectSound

Parameters

object
Object expression that resolves to a DirectX7 object.
guid
A GUID that identifies the sound capture device. The value of this parameter must be a GUID returned by calling DirectSoundEnum.GetGuid. This parameter can also be an empty string for the default device.

Return Values

If the method succeeds, a reference to a DirectSound object is returned.

Error Codes

If the method fails, an error is raised and Err.Number may be set to one of the following error codes:

DSERR_ALLOCATED
DSERR_INVALIDPARAM
DSERR_NOAGGREGATION
DSERR_NODRIVER
DSERR_OUTOFMEMORY