---
name: "DirectSoundCaptureCreate"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/DirectSoundCaptureCreate"
---

# DirectSoundCaptureCreate(3w)

## NAME

**DirectSoundCaptureCreate** (DSOUND.6)

## SYNOPSIS

HRESULT DirectSoundCaptureCreate\
  (\
   LPCGUID               *lpcGUID*,\
   IDirectSoundCapture\*\* *ppDSC*,\
   IUnknown\*             *pUnkOuter*\
  )

## DESCRIPTION

Create and initialize a DirectSoundCapture interface.

## PARAMS

*lpcGUID* **\[In\]**  Address of the **GUID** that identifies the sound capture device.

lplpDSC **\[Out\]**  Address of a variable to receive the interface pointer.

*pUnkOuter* **\[In\]**  Must be **NULL**.

## RETURNS

**Success:** **DS\_OK**

**Failure:** **DSERR\_NOAGGREGATION**, **DSERR\_ALLOCATED**, **DSERR\_INVALIDPARAM**, **DSERR\_OUTOFMEMORY**.

## NOTES

*lpcGUID* must be one of the values returned from DirectSoundCaptureEnumerate or **NULL** for the default device or DSDEVID\_DefaultCapture or DSDEVID\_DefaultVoiceCapture.

**DSERR\_ALLOCATED** is returned for sound devices that do not support full duplex.

## IMPLEMENTATION

Declared in **"dsound.h"**.

Implemented in **"dlls/dsound/capture.c"**.

Debug channel **"dsound"**.
