Share via


CaptureBuffer.CaptureBuffer(CaptureBufferDescription,Capture) Constructor (Microsoft.DirectX.DirectSound)

Initializes a new instance of the CaptureBuffer class.

Definition

Visual Basic Public Sub New( _
    ByVal desc As CaptureBufferDescription, _
    ByVal parent As Capture _
)
C# public CaptureBuffer(
    CaptureBufferDescription desc,
    Capture parent
);
C++ public:
 CaptureBuffer(
    CaptureBufferDescription desc,
    Captureparent
);
JScript public function CaptureBuffer(
    desc : CaptureBufferDescription,
    parent : Capture
);

Parameters

desc Microsoft.DirectX.DirectSound.CaptureBufferDescription
A CaptureBufferDescription structure that describes the capture buffer to create.
parent Microsoft.DirectX.DirectSound.Capture
The Capture object that represents the parent capture device to use with the capture buffer.

Remarks

Exceptions

ArgumentExceptionLeave Site

An invalid parameter was passed to the called method.

NoDriverException

No sound driver is available for use, or the given globally unique identifier (GUID) is not a valid Microsoft DirectSound device identifier (ID).

OutOfMemoryExceptionLeave Site

DirectSound could not allocate sufficient memory to complete the call.

SoundException

Root exception type for all DirectSound exceptions. Derives from DirectXException.