dsound/tests: Test Pan for 3D secondary buffers too.

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2015-12-01 14:48:43 +01:00 committed by Alexandre Julliard
parent 72d67a2d4e
commit 25d23d4432
2 changed files with 19 additions and 0 deletions

View File

@ -886,7 +886,16 @@ static HRESULT test_secondary(LPGUID lpGuid, int play,
ok(rc==DS_OK,"IDirectSoundBuffer_SetVolume(secondary) failed: %08x\n",rc); ok(rc==DS_OK,"IDirectSoundBuffer_SetVolume(secondary) failed: %08x\n",rc);
rc=IDirectSoundBuffer_SetPan(secondary,0); rc=IDirectSoundBuffer_SetPan(secondary,0);
ok(rc==DS_OK,"IDirectSoundBuffer_SetPan(secondary) failed: %08x\n",rc); ok(rc==DS_OK,"IDirectSoundBuffer_SetPan(secondary) failed: %08x\n",rc);
} else if (has_3dbuffer) {
LONG pan;
rc=IDirectSoundBuffer_GetPan(secondary,&pan);
ok(rc==DS_OK,"IDirectSoundBuffer_GetPan() failed, returned: %08x\n", rc);
rc=IDirectSoundBuffer_SetPan(secondary,0);
todo_wine
ok(rc==DS_OK,"IDirectSoundBuffer_SetPan() failed, returned: %08x\n", rc);
} }
if (has_duplicate) { if (has_duplicate) {
LPDIRECTSOUNDBUFFER duplicated=NULL; LPDIRECTSOUNDBUFFER duplicated=NULL;

View File

@ -730,7 +730,17 @@ static HRESULT test_secondary8(LPGUID lpGuid, BOOL play,
ok(rc==DS_OK,"IDirectSoundBuffer_SetVolume(secondary) failed: %08x\n",rc); ok(rc==DS_OK,"IDirectSoundBuffer_SetVolume(secondary) failed: %08x\n",rc);
rc=IDirectSoundBuffer_SetPan(secondary,0); rc=IDirectSoundBuffer_SetPan(secondary,0);
ok(rc==DS_OK,"IDirectSoundBuffer_SetPan(secondary) failed: %08x\n",rc); ok(rc==DS_OK,"IDirectSoundBuffer_SetPan(secondary) failed: %08x\n",rc);
} else {
LONG pan;
rc=IDirectSoundBuffer_GetPan(secondary,&pan);
ok(rc==DSERR_CONTROLUNAVAIL,"IDirectSoundBuffer_GetPan() "
"should have returned DSERR_CONTROLUNAVAIL, returned: %08x\n", rc);
rc=IDirectSoundBuffer_SetPan(secondary,0);
ok(rc==DSERR_CONTROLUNAVAIL,"IDirectSoundBuffer_SetPan() "
"should have returned DSERR_CONTROLUNAVAIL, returned: %08x\n", rc);
} }
if (has_duplicate) { if (has_duplicate) {
LPDIRECTSOUNDBUFFER duplicated=NULL; LPDIRECTSOUNDBUFFER duplicated=NULL;