Share via


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

Initializes a new instance of the CaptureBuffer class. This method supports the .NET Framework Infrastructure and is not intended to be used directly in your code.

Definition

Visual Basic Public Sub New( _
    ByVal lp As IntPtrLeave Site, _
    ByVal device As Capture _
)
C# public CaptureBuffer(
    IntPtrLeave Site lp,
    Capture device
);
C++ public:
 CaptureBuffer(
    IntPtrLeave Site lp,
    Capturedevice
);
JScript public function CaptureBuffer(
    lp : IntPtrLeave Site,
    device : Capture
);

Parameters

lp System.IntPtr
Pointer to the unmanaged Component Object Model (COM) interface, IDirectSoundCaptureBuffer8, which allows unmanaged COM clients to create an instance of the managed CaptureBuffer class. Not supported.
device 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.