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
fe09afb7
Commit
fe09afb7
authored
Aug 18, 2003
by
Robert Reif
Committed by
Alexandre Julliard
Aug 18, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug where last tests were not executed.
Print out sound device info.
parent
215a0d6f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
propset.c
dlls/dsound/tests/propset.c
+21
-0
No files found.
dlls/dsound/tests/propset.c
View file @
fe09afb7
...
...
@@ -33,6 +33,23 @@ typedef HRESULT (CALLBACK * MYPROC)(REFCLSID, REFIID, LPVOID FAR*);
BOOL
CALLBACK
callback
(
PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_DATA
data
,
LPVOID
context
)
{
trace
(
"found device:
\n
"
);
trace
(
"
\t
Type: %s
\n
"
,
data
->
Type
==
DIRECTSOUNDDEVICE_TYPE_EMULATED
?
"Emulated"
:
data
->
Type
==
DIRECTSOUNDDEVICE_TYPE_VXD
?
"VxD"
:
data
->
Type
==
DIRECTSOUNDDEVICE_TYPE_WDM
?
"WDM"
:
"Unknown"
);
trace
(
"
\t
DataFlow: %s
\n
"
,
data
->
DataFlow
==
DIRECTSOUNDDEVICE_DATAFLOW_RENDER
?
"Render"
:
data
->
DataFlow
==
DIRECTSOUNDDEVICE_DATAFLOW_CAPTURE
?
"Capture"
:
"Unknown"
);
trace
(
"
\t
DeviceId: {%08lx-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}
\n
"
,
data
->
DeviceId
.
Data1
,
data
->
DeviceId
.
Data2
,
data
->
DeviceId
.
Data3
,
data
->
DeviceId
.
Data4
[
0
],
data
->
DeviceId
.
Data4
[
1
],
data
->
DeviceId
.
Data4
[
2
],
data
->
DeviceId
.
Data4
[
3
],
data
->
DeviceId
.
Data4
[
4
],
data
->
DeviceId
.
Data4
[
5
],
data
->
DeviceId
.
Data4
[
6
],
data
->
DeviceId
.
Data4
[
7
]);
trace
(
"
\t
Description: %s
\n
"
,
data
->
Description
);
trace
(
"
\t
Module: %s
\n
"
,
data
->
Module
);
trace
(
"
\t
Interface: %s
\n
"
,
data
->
Interface
);
trace
(
"
\t
WaveDeviceId: %ld
\n
"
,
data
->
WaveDeviceId
);
return
TRUE
;
}
...
...
@@ -117,10 +134,12 @@ static void propset_tests()
/* direct sound private does have an IKsPropertySet */
hr
=
pcf
->
lpVtbl
->
CreateInstance
(
pcf
,
NULL
,
&
IID_IKsPropertySet
,
(
void
**
)(
&
pps
));
ok
(
hr
==
DS_OK
,
"CreateInstance(IID_IKsPropertySet) failed: 0x%lx
\n
"
,
hr
);
if
(
hr
!=
DS_OK
)
goto
error
;
hr
=
pps
->
lpVtbl
->
QuerySupport
(
pps
,
&
DSPROPSETID_DirectSoundDevice
,
DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION
,
&
support
);
ok
(
hr
==
DS_OK
,
"QuerySupport(DSPROPSETID_DirectSoundDevice, DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION) failed: 0x%lx
\n
"
,
hr
);
if
(
hr
!=
DS_OK
)
goto
error
;
ok
(
support
&
KSPROPERTY_SUPPORT_GET
,
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION: support = 0x%lx
\n
"
,
support
);
...
...
@@ -128,6 +147,7 @@ static void propset_tests()
hr
=
pps
->
lpVtbl
->
QuerySupport
(
pps
,
&
DSPROPSETID_DirectSoundDevice
,
DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING
,
&
support
);
ok
(
hr
==
DS_OK
,
"QuerySupport(DSPROPSETID_DirectSoundDevice, DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING) failed: 0x%lx
\n
"
,
hr
);
if
(
hr
!=
DS_OK
)
goto
error
;
ok
(
support
&
KSPROPERTY_SUPPORT_GET
,
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING: support = 0x%lx
\n
"
,
support
);
...
...
@@ -135,6 +155,7 @@ static void propset_tests()
hr
=
pps
->
lpVtbl
->
QuerySupport
(
pps
,
&
DSPROPSETID_DirectSoundDevice
,
DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE
,
&
support
);
ok
(
hr
==
DS_OK
,
"QuerySupport(DSPROPSETID_DirectSoundDevice, DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE) failed: 0x%lx
\n
"
,
hr
);
if
(
hr
!=
DS_OK
)
goto
error
;
ok
(
support
&
KSPROPERTY_SUPPORT_GET
,
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE: support = 0x%lx
\n
"
,
support
);
...
...
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