Capture.Capture(Guid) Constructor (Microsoft.DirectX.DirectSound)

Initializes a new instance of the Capture class using the Microsoft DirectSound capture device specified by its device globally unique identifier (GUID).

Definition

Visual Basic Public Sub New( _
    ByVal guidDev As GuidLeave Site _
)
C# public Capture(
    GuidLeave Site guidDev
);
C++ public:
 Capture(
    GuidLeave Site guidDev
);
JScript public function Capture(
    guidDev : GuidLeave Site
);

Parameters

guidDev System.Guid
The DirectSound capture device's GUID.

Remarks

To get a capture device's GUID, first enumerate the devices using the CaptureDevicesCollection object. Then get the GUID from the DriverGuid property of the DeviceInformation structure of the device you want to use.

Exceptions

ArgumentExceptionLeave Site

An invalid parameter was passed to the called method.

OutOfMemoryExceptionLeave Site

DirectSound could not allocate sufficient memory to complete the call.

AllocatedException

The request failed because resources, such as a priority level, were already in use by another caller.

NoAggregationException

The object does not support aggregation.