Microsoft DirectX 8.1 (Visual Basic)

DirectX8.DirectSoundCaptureCreate

Creates a DirectSoundCapture8 object.

object.DirectSoundCaptureCreate( _
    guid As String _
) As DirectSoundCapture8

Parts

object
Object expression that resolves to a DirectX8 object.
guid
A GUID string that identifies the sound capture device. The value of this parameter must be one of the GUIDs returned by DirectX8.getDSCaptureEnum, vbNullString for the default device, or one of the following values:
DSDEVID_DEFAULTCAPTURE
System-wide default audio capture device.
DSDEVID_DEFAULTVOICECAPTURE
Default voice capture device.

Return Values

Returns a DirectSoundCapture8 object.

Error Codes

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

Remarks

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