Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
0eaf5c15
Commit
0eaf5c15
authored
May 01, 2012
by
Christian Costa
Committed by
Alexandre Julliard
May 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Add tests to enumerate master clocks.
parent
415d7a44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
dmusic.c
dlls/dmusic/tests/dmusic.c
+13
-0
No files found.
dlls/dmusic/tests/dmusic.c
View file @
0eaf5c15
...
@@ -47,6 +47,7 @@ static void test_dmusic(void)
...
@@ -47,6 +47,7 @@ static void test_dmusic(void)
DMUS_PORTCAPS
port_caps
;
DMUS_PORTCAPS
port_caps
;
DMUS_PORTPARAMS
port_params
;
DMUS_PORTPARAMS
port_params
;
IDirectMusicPort
*
port
=
NULL
;
IDirectMusicPort
*
port
=
NULL
;
DMUS_CLOCKINFO
clock_info
;
hr
=
CoCreateInstance
(
&
CLSID_DirectMusic
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectMusic
,
(
LPVOID
*
)
&
dmusic
);
hr
=
CoCreateInstance
(
&
CLSID_DirectMusic
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectMusic
,
(
LPVOID
*
)
&
dmusic
);
if
(
hr
!=
S_OK
)
if
(
hr
!=
S_OK
)
...
@@ -99,6 +100,18 @@ static void test_dmusic(void)
...
@@ -99,6 +100,18 @@ static void test_dmusic(void)
index
++
;
index
++
;
}
}
index
=
0
;
clock_info
.
dwSize
=
sizeof
(
clock_info
);
while
(
IDirectMusic_EnumMasterClock
(
dmusic
,
index
,
&
clock_info
)
==
S_OK
)
{
ok
(
clock_info
.
dwSize
==
sizeof
(
clock_info
),
"DMUS_CLOCKINFO dwSize member is wrong (%u)
\n
"
,
clock_info
.
dwSize
);
trace
(
"Clock %u:
\n
"
,
index
);
trace
(
" ctType = %u
\n
"
,
clock_info
.
ctType
);
trace
(
" guidClock = %s
\n
"
,
debugstr_guid
(
&
clock_info
.
guidClock
));
trace
(
" wszDescription = %s
\n
"
,
wine_dbgstr_w
(
clock_info
.
wszDescription
));
index
++
;
}
if
(
port
)
if
(
port
)
IDirectMusicPort_Release
(
port
);
IDirectMusicPort_Release
(
port
);
IDirectMusic_Release
(
dmusic
);
IDirectMusic_Release
(
dmusic
);
...
...
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