The DirectSoundFullDuplexCreate8 function creates the DirectSound and DirectSoundCapture objects and returns the IDirectSoundFullDuplex8 interface. This function requires Microsoft Windows XP. Full duplex can be implemented on other operating systems, but the capture and rendering devices must be created separately.
HRESULT DirectSoundFullDuplexCreate8( LPCGUID pcGuidCaptureDevice, LPCGUID pcGuidRenderDevice, LPCDSCBUFFERDESC pcDSCBufferDesc, LPCDSBUFFERDESC pcDSBufferDesc, HWND hWnd, DWORD dwLevel, LPDIRECTSOUNDFULLDUPLEX * ppDSFD, LPDIRECTSOUNDCAPTUREBUFFER8 * ppDSCBuffer8, LPDIRECTSOUNDBUFFER8 * ppDSBuffer8, LPUNKNOWN pUnkOuter );
Value | Description |
---|---|
DSDEVID_DefaultCapture | System-wide default audio capture device. |
DSDEVID_DefaultVoiceCapture | Default voice capture device. |
Value | Description |
---|---|
DSDEVID_DefaultPlayback | System-wide default audio playback device. |
DSDEVID_DefaultVoicePlayback | Default voice playback device. |
If the function succeeds, it returns DS_OK. If it fails, the return value may be one of the following.
Return Code |
---|
DSERR_ALLOCATED |
DSERR_INVALIDPARAM |
DSERR_NOAGGREGATION |
DSERR_NODRIVER |
DSERR_OUTOFMEMORY |
Windows: Important Note for Windows Vista
Existing applications that access Windows XP Acoustic Echo Cancellation (AEC) features via the DirectSound API will no longer obtain AEC when running on Windows Vista. These applications will still run, but their calls to AEC-specific DirectSound API calls will have no effect on the captured audio.
To learn how to obtain AEC in Windows Vista, See the Windows Vista AEC topics in the Windows SDK.
Header: Declared in Dsound.h.
Import Library: Use Dsound.lib.
Creating the Capture Device Object | Creating the Device Object