DirectX SDK

DirectX7.DirectSoundCaptureCreate

The DirectX7.DirectSoundCaptureCreate method creates a DirectSoundCapture object.

object.DirectSoundCaptureCreate(guid As String) _
    As DirectSoundCapture

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 DirectX7.GetDSCaptureEnum. This parameter can also be an empty string for the default device.

Return Values

If the method succeeds, a reference to a DirectSoundCapture 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_INVALIDPARAM
DSERR_NOAGGREGATION
DSERR_OUTOFMEMORY

Remarks

This method could fail on some sound cards that do not support full duplex. Calling DirectX7.DirectSoundCreate may set the capture device to an unsupported capture frequency which will cause DirectX7.DirectSoundCaptureCreate to fail.