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
6255936c
Commit
6255936c
authored
Jan 25, 2006
by
Robert Reif
Committed by
Alexandre Julliard
Jan 25, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Duplex test fix.
parent
53c469f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
duplex.c
dlls/dsound/tests/duplex.c
+12
-12
No files found.
dlls/dsound/tests/duplex.c
View file @
6255936c
...
...
@@ -124,8 +124,8 @@ static void IDirectSoundFullDuplex_tests(void)
CLSCTX_INPROC_SERVER
,
&
IID_IDirectSoundFullDuplex
,
(
void
**
)
&
dsfdo
);
ok
(
rc
==
S_OK
||
rc
==
REGDB_E_CLASSNOTREG
,
"CoCreateInstance(CLSID_DirectSoundFullDuplex) failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
"CoCreateInstance(CLSID_DirectSoundFullDuplex) failed: %s
(0x%08lx)
\n
"
,
DXGetErrorString8
(
rc
)
,
rc
);
if
(
rc
==
REGDB_E_CLASSNOTREG
)
{
trace
(
" Class Not Registered
\n
"
);
return
;
...
...
@@ -138,8 +138,8 @@ static void IDirectSoundFullDuplex_tests(void)
rc
=
CoCreateInstance
(
&
CLSID_DirectSoundFullDuplex
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectSoundFullDuplex
,
(
void
**
)
&
dsfdo
);
ok
(
rc
==
S_OK
,
"CoCreateInstance(CLSID_DirectSoundFullDuplex) failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
S_OK
,
"CoCreateInstance(CLSID_DirectSoundFullDuplex) failed: %s
(0x%08lx)
\n
"
,
DXGetErrorString8
(
rc
)
,
rc
);
if
(
dsfdo
)
IDirectSoundFullDuplex_test
(
dsfdo
,
FALSE
,
&
DSDEVID_DefaultCapture
,
&
DSDEVID_DefaultPlayback
);
...
...
@@ -149,8 +149,8 @@ static void IDirectSoundFullDuplex_tests(void)
rc
=
CoCreateInstance
(
&
CLSID_DirectSoundFullDuplex
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectSoundFullDuplex
,
(
void
**
)
&
dsfdo
);
ok
(
rc
==
S_OK
,
"CoCreateInstance(CLSID_DirectSoundFullDuplex) failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
S_OK
,
"CoCreateInstance(CLSID_DirectSoundFullDuplex) failed: %s
(0x%08lx)
\n
"
,
DXGetErrorString8
(
rc
)
,
rc
);
if
(
dsfdo
)
IDirectSoundFullDuplex_test
(
dsfdo
,
FALSE
,
&
DSDEVID_DefaultVoiceCapture
,
&
DSDEVID_DefaultVoicePlayback
);
...
...
@@ -162,7 +162,7 @@ static void IDirectSoundFullDuplex_tests(void)
(
void
**
)
&
dsfdo
);
ok
(
rc
==
E_NOINTERFACE
,
"CoCreateInstance(CLSID_DirectSoundFullDuplex,CLSID_DirectSoundPrivate) "
"should have failed: %s
\n
"
,
DXGetErrorString8
(
rc
)
);
"should have failed: %s
(0x%08lx)
\n
"
,
DXGetErrorString8
(
rc
),
rc
);
ZeroMemory
(
&
wfex
,
sizeof
(
wfex
));
wfex
.
wFormatTag
=
WAVE_FORMAT_PCM
;
...
...
@@ -188,8 +188,8 @@ static void IDirectSoundFullDuplex_tests(void)
rc
=
pDirectSoundFullDuplexCreate
(
NULL
,
NULL
,
&
DSCBufferDesc
,
&
DSBufferDesc
,
get_hwnd
(),
DSSCL_EXCLUSIVE
,
&
dsfdo
,
&
pDSCBuffer8
,
&
pDSBuffer8
,
NULL
);
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
||
rc
==
E_FAIL
,
"DirectSoundFullDuplexCreate(NULL) failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
||
rc
==
E_FAIL
||
rc
==
DSERR_INVALIDCALL
,
"DirectSoundFullDuplexCreate(NULL
,NULL
) failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
==
S_OK
&&
dsfdo
)
IDirectSoundFullDuplex_test
(
dsfdo
,
TRUE
,
NULL
,
NULL
);
...
...
@@ -198,7 +198,7 @@ static void IDirectSoundFullDuplex_tests(void)
&
DSDEVID_DefaultPlayback
,
&
DSCBufferDesc
,
&
DSBufferDesc
,
get_hwnd
(),
DSSCL_EXCLUSIVE
,
&
dsfdo
,
&
pDSCBuffer8
,
&
pDSBuffer8
,
NULL
);
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
||
rc
==
E_FAIL
,
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
||
rc
==
E_FAIL
||
rc
==
DSERR_INVALIDCALL
,
"DirectSoundFullDuplexCreate(DSDEVID_DefaultCapture,"
"DSDEVID_DefaultPlayback) failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
...
...
@@ -210,7 +210,7 @@ static void IDirectSoundFullDuplex_tests(void)
&
DSDEVID_DefaultVoicePlayback
,
&
DSCBufferDesc
,
&
DSBufferDesc
,
get_hwnd
(),
DSSCL_EXCLUSIVE
,
&
dsfdo
,
&
pDSCBuffer8
,
&
pDSBuffer8
,
NULL
);
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
||
rc
==
E_FAIL
,
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
||
rc
==
E_FAIL
||
rc
==
DSERR_INVALIDCALL
,
"DirectSoundFullDuplexCreate(DSDEVID_DefaultVoiceCapture,"
"DSDEVID_DefaultVoicePlayback) failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
...
...
@@ -222,7 +222,7 @@ static void IDirectSoundFullDuplex_tests(void)
&
DSDEVID_DefaultVoiceCapture
,
&
DSCBufferDesc
,
&
DSBufferDesc
,
get_hwnd
(),
DSSCL_EXCLUSIVE
,
&
dsfdo
,
&
pDSCBuffer8
,
&
pDSBuffer8
,
NULL
);
ok
(
rc
==
DSERR_NODRIVER
,
ok
(
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_INVALIDCALL
,
"DirectSoundFullDuplexCreate(DSDEVID_DefaultVoicePlayback,"
"DSDEVID_DefaultVoiceCapture) should have failed: %s
\n
"
,
DXGetErrorString8
(
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