Microsoft DirectX 8.1 (Visual Basic)

Creating the DirectSoundCapture Object

You create the DirectSoundCapture8 object by calling the DirectX8.DirectSoundCaptureCreate method.

The guid parameter to DirectSoundCaptureCreate can be a GUID obtained by enumeration, or it can be one of the following values:

DSDEVID_DefaultCapture

The default system capture device. You can also specify this device by passing vbNullString in the device GUID parameter.

DSDEVID_DefaultVoiceCapture

The default voice communications capture device. Typically, this is a secondary device such as a USB headset with microphone.

If no device driver is present, the call raises an error.

If you want DirectSound8 and DirectSoundCapture8 objects to coexist, then you should create the DirectSound8 object before creating the DirectSoundCapture8 object.

Some audio devices aren't configured for full duplex audio by default. If your application has problems creating both a DirectSound8 object and a DirectSoundCapture8 object, you should advise the user to check the audio device properties to ensure that full duplex is enabled.