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

# DirectSoundCreate(3w)

## NAME

**DirectSoundCreate** (DSOUND.1)

## SYNOPSIS

HRESULT DirectSoundCreate\
  (\
   LPCGUID        *lpcGUID*,\
   LPDIRECTSOUND\* *ppDS*,\
   IUnknown\*      *pUnkOuter*\
  )

## DESCRIPTION

Creates and initializes a DirectSound interface.

## PARAMS

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

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

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

## RETURNS

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

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

## IMPLEMENTATION

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

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

Debug channel **"dsound"**.
