Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
7d9340b8
Commit
7d9340b8
authored
Jun 05, 2005
by
Robert Reif
Committed by
Alexandre Julliard
Jun 05, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests to work with drivers that don't support a primary buffer.
parent
0aec9906
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
20 deletions
+32
-20
ds3d.c
dlls/dsound/tests/ds3d.c
+12
-8
ds3d8.c
dlls/dsound/tests/ds3d8.c
+12
-8
dsound.c
dlls/dsound/tests/dsound.c
+4
-2
dsound8.c
dlls/dsound/tests/dsound8.c
+4
-2
No files found.
dlls/dsound/tests/ds3d.c
View file @
7d9340b8
...
...
@@ -674,11 +674,12 @@ static HRESULT test_secondary(LPGUID lpGuid, int play,
else
bufdesc
.
dwFlags
|=
(
DSBCAPS_CTRLVOLUME
|
DSBCAPS_CTRLPAN
);
rc
=
IDirectSound_CreateSoundBuffer
(
dso
,
&
bufdesc
,
&
primary
,
NULL
);
ok
(
rc
==
DS_OK
&&
primary
!=
NULL
,
"IDirectSound_CreateSoundBuffer() "
"failed to create a %sprimary buffer: %s
\n
"
,
has_3d
?
"3D "
:
""
,
DXGetErrorString8
(
rc
));
if
(
rc
==
DS_OK
&&
primary
!=
NULL
)
{
ok
((
rc
==
DS_OK
&&
primary
!=
NULL
)
||
(
rc
==
DSERR_CONTROLUNAVAIL
),
"IDirectSound_CreateSoundBuffer() failed to create a %sprimary buffer: "
"%s
\n
"
,
has_3d
?
"3D "
:
""
,
DXGetErrorString8
(
rc
));
if
(
rc
==
DSERR_CONTROLUNAVAIL
)
trace
(
" No Primary
\n
"
);
else
if
(
rc
==
DS_OK
&&
primary
!=
NULL
)
{
rc
=
IDirectSoundBuffer_GetFormat
(
primary
,
&
wfx1
,
sizeof
(
wfx1
),
NULL
);
ok
(
rc
==
DS_OK
,
"IDirectSoundBuffer8_Getformat() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
...
...
@@ -953,9 +954,12 @@ static HRESULT test_primary(LPGUID lpGuid)
bufdesc
.
dwSize
=
sizeof
(
bufdesc
);
bufdesc
.
dwFlags
=
DSBCAPS_PRIMARYBUFFER
|
DSBCAPS_CTRLVOLUME
|
DSBCAPS_CTRLPAN
;
rc
=
IDirectSound_CreateSoundBuffer
(
dso
,
&
bufdesc
,
&
primary
,
NULL
);
ok
(
rc
==
DS_OK
&&
primary
!=
NULL
,
"IDirectSound_CreateSoundBuffer() failed "
"to create a primary buffer: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
==
DS_OK
&&
primary
!=
NULL
)
{
ok
((
rc
==
DS_OK
&&
primary
!=
NULL
)
||
(
rc
==
DSERR_CONTROLUNAVAIL
),
"IDirectSound_CreateSoundBuffer() failed to create a primary buffer: "
"%s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
==
DSERR_CONTROLUNAVAIL
)
trace
(
" No Primary
\n
"
);
else
if
(
rc
==
DS_OK
&&
primary
!=
NULL
)
{
test_buffer
(
dso
,
primary
,
1
,
TRUE
,
0
,
TRUE
,
0
,
winetest_interactive
&&
!
(
dscaps
.
dwFlags
&
DSCAPS_EMULDRIVER
),
1
.
0
,
0
,
NULL
,
0
,
0
,
FALSE
,
0
);
...
...
dlls/dsound/tests/ds3d8.c
View file @
7d9340b8
...
...
@@ -556,11 +556,12 @@ static HRESULT test_secondary8(LPGUID lpGuid, int play,
else
bufdesc
.
dwFlags
|=
(
DSBCAPS_CTRLVOLUME
|
DSBCAPS_CTRLPAN
);
rc
=
IDirectSound8_CreateSoundBuffer
(
dso
,
&
bufdesc
,
&
primary
,
NULL
);
ok
(
rc
==
DS_OK
&&
primary
!=
NULL
,
"IDirectSound8_CreateSoundBuffer() "
"failed to create a %sprimary buffer: %s
\n
"
,
has_3d
?
"3D "
:
""
,
DXGetErrorString8
(
rc
));
if
(
rc
==
DS_OK
&&
primary
!=
NULL
)
{
ok
((
rc
==
DS_OK
&&
primary
!=
NULL
)
||
(
rc
==
DSERR_CONTROLUNAVAIL
),
"IDirectSound8_CreateSoundBuffer() failed to create a %sprimary buffer: "
"%s
\n
"
,
has_3d
?
"3D "
:
""
,
DXGetErrorString8
(
rc
));
if
(
rc
==
DSERR_CONTROLUNAVAIL
)
trace
(
" No Primary
\n
"
);
else
if
(
rc
==
DS_OK
&&
primary
!=
NULL
)
{
rc
=
IDirectSoundBuffer_GetFormat
(
primary
,
&
wfx1
,
sizeof
(
wfx1
),
NULL
);
ok
(
rc
==
DS_OK
,
"IDirectSoundBuffer8_Getformat() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
...
...
@@ -847,9 +848,12 @@ static HRESULT test_primary8(LPGUID lpGuid)
bufdesc
.
dwSize
=
sizeof
(
bufdesc
);
bufdesc
.
dwFlags
=
DSBCAPS_PRIMARYBUFFER
|
DSBCAPS_CTRLVOLUME
|
DSBCAPS_CTRLPAN
;
rc
=
IDirectSound8_CreateSoundBuffer
(
dso
,
&
bufdesc
,
&
primary
,
NULL
);
ok
(
rc
==
DS_OK
&&
primary
!=
NULL
,
"IDirectSound8_CreateSoundBuffer() failed "
"to create a primary buffer: 0x%lx
\n
"
,
rc
);
if
(
rc
==
DS_OK
&&
primary
!=
NULL
)
{
ok
((
rc
==
DS_OK
&&
primary
!=
NULL
)
||
(
rc
==
DSERR_CONTROLUNAVAIL
),
"IDirectSound8_CreateSoundBuffer() failed to create a primary buffer: "
"%s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
==
DSERR_CONTROLUNAVAIL
)
trace
(
" No Primary
\n
"
);
else
if
(
rc
==
DS_OK
&&
primary
!=
NULL
)
{
test_buffer8
(
dso
,
primary
,
1
,
TRUE
,
0
,
TRUE
,
0
,
winetest_interactive
&&
!
(
dscaps
.
dwFlags
&
DSCAPS_EMULDRIVER
),
1
.
0
,
0
,
NULL
,
0
,
0
);
if
(
winetest_interactive
)
{
...
...
dlls/dsound/tests/dsound.c
View file @
7d9340b8
...
...
@@ -428,10 +428,12 @@ static HRESULT test_primary(LPGUID lpGuid)
bufdesc
.
dwSize
=
sizeof
(
bufdesc
);
bufdesc
.
dwFlags
=
DSBCAPS_PRIMARYBUFFER
|
DSBCAPS_CTRLVOLUME
;
rc
=
IDirectSound_CreateSoundBuffer
(
dso
,
&
bufdesc
,
&
primary
,
NULL
);
ok
(
rc
==
DS_OK
&&
primary
!=
NULL
,
ok
(
(
rc
==
DS_OK
&&
primary
!=
NULL
)
||
(
rc
==
DSERR_CONTROLUNAVAIL
)
,
"IDirectSound_CreateSoundBuffer() failed to create a primary buffer: "
"%s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
==
DS_OK
&&
primary
!=
NULL
)
{
if
(
rc
==
DSERR_CONTROLUNAVAIL
)
trace
(
" No Primary
\n
"
);
else
if
(
rc
==
DS_OK
&&
primary
!=
NULL
)
{
LONG
vol
;
/* Try to create a second primary buffer */
...
...
dlls/dsound/tests/dsound8.c
View file @
7d9340b8
...
...
@@ -454,10 +454,12 @@ static HRESULT test_primary8(LPGUID lpGuid)
bufdesc
.
dwSize
=
sizeof
(
bufdesc
);
bufdesc
.
dwFlags
=
DSBCAPS_PRIMARYBUFFER
|
DSBCAPS_CTRLVOLUME
;
rc
=
IDirectSound8_CreateSoundBuffer
(
dso
,
&
bufdesc
,
&
primary
,
NULL
);
ok
(
rc
==
DS_OK
&&
primary
!=
NULL
,
ok
(
(
rc
==
DS_OK
&&
primary
!=
NULL
)
||
(
rc
==
DSERR_CONTROLUNAVAIL
)
,
"IDirectSound8_CreateSoundBuffer() failed to create a primary buffer: "
"%s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
==
DS_OK
&&
primary
!=
NULL
)
{
if
(
rc
==
DSERR_CONTROLUNAVAIL
)
trace
(
" No Primary
\n
"
);
else
if
(
rc
==
DS_OK
&&
primary
!=
NULL
)
{
LONG
vol
;
/* Try to create a second primary buffer */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment