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
2a438aa0
Commit
2a438aa0
authored
Mar 30, 2005
by
Robert Reif
Committed by
Alexandre Julliard
Mar 30, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keep dsound8.c and dsound.c in sync.
parent
7bfc2902
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
dsound.c
dlls/dsound/tests/dsound.c
+1
-1
dsound8.c
dlls/dsound/tests/dsound8.c
+9
-11
No files found.
dlls/dsound/tests/dsound.c
View file @
2a438aa0
...
@@ -98,7 +98,7 @@ static void IDirectSound_test(LPDIRECTSOUND dso, BOOL initialized,
...
@@ -98,7 +98,7 @@ static void IDirectSound_test(LPDIRECTSOUND dso, BOOL initialized,
trace
(
" No Device
\n
"
);
trace
(
" No Device
\n
"
);
return
;
return
;
}
else
if
(
rc
==
DSERR_ALLOCATED
)
{
}
else
if
(
rc
==
DSERR_ALLOCATED
)
{
trace
(
" Already
Allocated
\n
"
);
trace
(
" Already
In Use
\n
"
);
return
;
return
;
}
}
}
}
...
...
dlls/dsound/tests/dsound8.c
View file @
2a438aa0
...
@@ -104,20 +104,18 @@ static void IDirectSound8_test(LPDIRECTSOUND8 dso, BOOL initialized,
...
@@ -104,20 +104,18 @@ static void IDirectSound8_test(LPDIRECTSOUND8 dso, BOOL initialized,
DXGetErrorString8
(
rc
));
DXGetErrorString8
(
rc
));
rc
=
IDirectSound8_Initialize
(
dso
,
lpGuid
);
rc
=
IDirectSound8_Initialize
(
dso
,
lpGuid
);
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
,
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
||
rc
==
E_FAIL
,
"IDirectSound8_Initialize() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
"IDirectSound8_Initialize() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
==
DSERR_NODRIVER
)
{
if
(
rc
==
DSERR_NODRIVER
)
{
trace
(
" No Driver
\n
"
);
trace
(
" No Driver
\n
"
);
return
;
return
;
}
}
else
if
(
rc
==
E_FAIL
)
{
if
(
rc
==
DSERR_ALLOCATED
)
{
trace
(
" No Device
\n
"
);
return
;
}
else
if
(
rc
==
DSERR_ALLOCATED
)
{
trace
(
" Already In Use
\n
"
);
trace
(
" Already In Use
\n
"
);
return
;
return
;
}
}
if
(
rc
==
E_FAIL
)
{
trace
(
" Could not initialize DirectSound.
\n
"
);
return
;
}
}
}
/* DSOUND: Error: Invalid caps buffer */
/* DSOUND: Error: Invalid caps buffer */
...
@@ -233,21 +231,21 @@ static void IDirectSound8_tests()
...
@@ -233,21 +231,21 @@ static void IDirectSound8_tests()
/* try with no device specified */
/* try with no device specified */
rc
=
pDirectSoundCreate8
(
NULL
,
&
dso
,
NULL
);
rc
=
pDirectSoundCreate8
(
NULL
,
&
dso
,
NULL
);
ok
(
rc
==
S_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
,
ok
(
rc
==
S_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
||
rc
==
E_FAIL
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
==
DS_OK
&&
dso
)
if
(
rc
==
DS_OK
&&
dso
)
IDirectSound8_test
(
dso
,
TRUE
,
NULL
);
IDirectSound8_test
(
dso
,
TRUE
,
NULL
);
/* try with default playback device specified */
/* try with default playback device specified */
rc
=
pDirectSoundCreate8
(
&
DSDEVID_DefaultPlayback
,
&
dso
,
NULL
);
rc
=
pDirectSoundCreate8
(
&
DSDEVID_DefaultPlayback
,
&
dso
,
NULL
);
ok
(
rc
==
S_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
,
ok
(
rc
==
S_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
||
rc
==
E_FAIL
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
==
DS_OK
&&
dso
)
if
(
rc
==
DS_OK
&&
dso
)
IDirectSound8_test
(
dso
,
TRUE
,
NULL
);
IDirectSound8_test
(
dso
,
TRUE
,
NULL
);
/* try with default voice playback device specified */
/* try with default voice playback device specified */
rc
=
pDirectSoundCreate8
(
&
DSDEVID_DefaultVoicePlayback
,
&
dso
,
NULL
);
rc
=
pDirectSoundCreate8
(
&
DSDEVID_DefaultVoicePlayback
,
&
dso
,
NULL
);
ok
(
rc
==
S_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
,
ok
(
rc
==
S_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
||
rc
==
E_FAIL
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
==
DS_OK
&&
dso
)
if
(
rc
==
DS_OK
&&
dso
)
IDirectSound8_test
(
dso
,
TRUE
,
NULL
);
IDirectSound8_test
(
dso
,
TRUE
,
NULL
);
...
@@ -271,7 +269,7 @@ static HRESULT test_dsound8(LPGUID lpGuid)
...
@@ -271,7 +269,7 @@ static HRESULT test_dsound8(LPGUID lpGuid)
/* Create the DirectSound8 object */
/* Create the DirectSound8 object */
rc
=
pDirectSoundCreate8
(
lpGuid
,
&
dso
,
NULL
);
rc
=
pDirectSoundCreate8
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
,
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
||
rc
==
E_FAIL
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
if
(
rc
!=
DS_OK
)
return
rc
;
return
rc
;
...
...
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