mirror of
https://github.com/reactos/wine.git
synced 2024-11-30 23:20:56 +00:00
dsound: A version 1 3d secondary buffer allows SetPan().
For version 8 DSBCAPS_CTRL3D and DSBCAPS_CTRLPAN are mutually exclusive and a sound buffer cannot be created when both flags are set. 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:
parent
25d23d4432
commit
e69d9ec3c4
@ -586,9 +586,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_SetPan(IDirectSoundBuffer8 *iface,
|
||||
return DSERR_INVALIDPARAM;
|
||||
}
|
||||
|
||||
/* You cannot use both pan and 3D controls */
|
||||
if (!(This->dsbd.dwFlags & DSBCAPS_CTRLPAN) ||
|
||||
(This->dsbd.dwFlags & DSBCAPS_CTRL3D)) {
|
||||
if (!(This->dsbd.dwFlags & DSBCAPS_CTRLPAN)) {
|
||||
WARN("control unavailable\n");
|
||||
return DSERR_CONTROLUNAVAIL;
|
||||
}
|
||||
|
@ -892,7 +892,6 @@ static HRESULT test_secondary(LPGUID lpGuid, int play,
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user