Microsoft DirectX 8.0 (C++) |
Creates and initializes an object that supports the IDirectSound8 interface.
HRESULT WINAPI DirectSoundCreate8( LPCGUID lpcGuidDevice, LPDIRECTSOUND8 * ppDS8, LPUNKNOWN pUnkOuter );
If the function succeeds, the return value is DS_OK.
If the function fails, the return value may be one of the following error values:
DSERR_ALLOCATED |
DSERR_INVALIDPARAM |
DSERR_NOAGGREGATION |
DSERR_NODRIVER |
DSERR_OUTOFMEMORY |
The application must call the IDirectSound8::SetCooperativeLevel method immediately after creating a DirectSound object.
Header: Declared in dsound.h.
Import Library: Use dsound.lib.