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 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
An invalid parameter was passed to the called method.
DirectSound could not allocate sufficient memory to complete the call.
The request failed because resources, such as a priority level, were already in use by another caller.
The object does not support aggregation.