98{
106
107 trace(
"Testing IDirectSoundFullDuplex\n");
108
109
111 CLSCTX_INPROC_SERVER, &IID_IDirectSoundFullDuplex,
112 (void**)&dsfdo);
114 "CoCreateInstance(CLSID_DirectSoundFullDuplex) failed: 0x%08x\n", rc);
116 trace(
" Class Not Registered\n");
117 return;
119 trace(
" Class Not Available\n");
120 return;
121 }
122 if (dsfdo)
124
125
126
128 CLSCTX_INPROC_SERVER, &IID_IDirectSoundFullDuplex,
129 (void**)&dsfdo);
130 ok(rc==
S_OK,
"CoCreateInstance(CLSID_DirectSoundFullDuplex) failed: 0x%08x\n", rc);
131 if (dsfdo)
133 &DSDEVID_DefaultPlayback);
134
135
136
138 CLSCTX_INPROC_SERVER, &IID_IDirectSoundFullDuplex,
139 (void**)&dsfdo);
140 ok(rc==
S_OK,
"CoCreateInstance(CLSID_DirectSoundFullDuplex) failed: 0x%08x\n", rc);
141 if (dsfdo)
143 &DSDEVID_DefaultVoicePlayback);
144
145
146
148 CLSCTX_INPROC_SERVER, &CLSID_DirectSoundPrivate,
149 (void**)&dsfdo);
151 "CoCreateInstance(CLSID_DirectSoundFullDuplex,CLSID_DirectSoundPrivate) "
152 "should have failed: 0x%08x\n", rc);
153
161
162 ZeroMemory(&DSCBufferDesc,
sizeof(DSCBufferDesc));
163 DSCBufferDesc.
dwSize =
sizeof(DSCBufferDesc);
167
168 ZeroMemory(&DSBufferDesc,
sizeof(DSBufferDesc));
169 DSBufferDesc.
dwSize =
sizeof(DSBufferDesc);
173
174
175 rc=pDirectSoundFullDuplexCreate(
NULL,
NULL,&DSCBufferDesc,&DSBufferDesc,
179 "DirectSoundFullDuplexCreate(NULL,NULL) failed: %08x\n",rc);
180 if (rc==
S_OK && dsfdo)
182
183
184 rc=pDirectSoundFullDuplexCreate(&DSDEVID_DefaultCapture,
185 &DSDEVID_DefaultPlayback,&DSCBufferDesc,
187 &pDSCBuffer8,&pDSBuffer8,
NULL);
189 "DirectSoundFullDuplexCreate(DSDEVID_DefaultCapture,"
190 "DSDEVID_DefaultPlayback) failed: %08x\n", rc);
191 if (rc==
DS_OK && dsfdo)
193
194
195 rc=pDirectSoundFullDuplexCreate(&DSDEVID_DefaultVoiceCapture,
196 &DSDEVID_DefaultVoicePlayback,
198 &dsfdo,&pDSCBuffer8,&pDSBuffer8,
NULL);
200 "DirectSoundFullDuplexCreate(DSDEVID_DefaultVoiceCapture,"
201 "DSDEVID_DefaultVoicePlayback) failed: %08x\n", rc);
202 if (rc==
DS_OK && dsfdo)
204
205
206 rc=pDirectSoundFullDuplexCreate(&DSDEVID_DefaultVoicePlayback,
207 &DSDEVID_DefaultVoiceCapture,
209 &dsfdo,&pDSCBuffer8,&pDSBuffer8,
NULL);
211 "DirectSoundFullDuplexCreate(DSDEVID_DefaultVoicePlayback,"
212 "DSDEVID_DefaultVoiceCapture) should have failed: %08x\n", rc);
213 if (rc==
DS_OK && dsfdo)
215}
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
#define DSBCAPS_GLOBALFOCUS
struct IDirectSoundCaptureBuffer8 * LPDIRECTSOUNDCAPTUREBUFFER8
struct IDirectSoundFullDuplex * LPDIRECTSOUNDFULLDUPLEX
#define DSERR_INVALIDCALL
struct IDirectSoundBuffer8 * LPDIRECTSOUNDBUFFER8
#define DSCBCAPS_WAVEMAPPED
static void IDirectSoundFullDuplex_test(LPDIRECTSOUNDFULLDUPLEX dsfdo, BOOL initialized, LPCGUID lpGuidCapture, LPCGUID lpGuidRender)
LPWAVEFORMATEX lpwfxFormat
LPWAVEFORMATEX lpwfxFormat
#define REGDB_E_CLASSNOTREG
#define CLASS_E_CLASSNOTAVAILABLE