Capture.Capture Constructor

Language:

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 Guid _
)
C# public Capture(
    Guid guidDev
);
C++ public:
 Capture(
    Guid guidDev
);
JScript public function Capture(
    guidDev : Guid
);

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
ArgumentException Leave Site An invalid parameter was passed to the called method.
OutOfMemoryException Leave 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.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center