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
6ebf1396
Commit
6ebf1396
authored
Sep 24, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Sep 24, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Add master clock tests.
parent
12d11833
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
dmusic.c
dlls/dmusic/tests/dmusic.c
+9
-0
No files found.
dlls/dmusic/tests/dmusic.c
View file @
6ebf1396
...
@@ -58,6 +58,8 @@ static void test_dmusic(void)
...
@@ -58,6 +58,8 @@ static void test_dmusic(void)
DMUS_PORTPARAMS
port_params
;
DMUS_PORTPARAMS
port_params
;
IDirectMusicPort
*
port
=
NULL
;
IDirectMusicPort
*
port
=
NULL
;
DMUS_CLOCKINFO
clock_info
;
DMUS_CLOCKINFO
clock_info
;
GUID
guid_clock
;
IReferenceClock
*
clock
=
NULL
;
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
)
...
@@ -66,6 +68,13 @@ static void test_dmusic(void)
...
@@ -66,6 +68,13 @@ static void test_dmusic(void)
return
;
return
;
}
}
hr
=
IDirectMusic_GetMasterClock
(
dmusic
,
&
guid_clock
,
&
clock
);
ok
(
hr
==
S_OK
,
"IDirectMusic_GetMasterClock returned: %x
\n
"
,
hr
);
ok
(
clock
!=
NULL
,
"No clock returned
\n
"
);
trace
(
" guidPort = %s
\n
"
,
debugstr_guid
(
&
guid_clock
));
if
(
clock
)
IReferenceClock_Release
(
clock
);
port_params
.
dwSize
=
sizeof
(
port_params
);
port_params
.
dwSize
=
sizeof
(
port_params
);
port_params
.
dwValidParams
=
DMUS_PORTPARAMS_CHANNELGROUPS
|
DMUS_PORTPARAMS_AUDIOCHANNELS
;
port_params
.
dwValidParams
=
DMUS_PORTPARAMS_CHANNELGROUPS
|
DMUS_PORTPARAMS_AUDIOCHANNELS
;
port_params
.
dwChannelGroups
=
1
;
port_params
.
dwChannelGroups
=
1
;
...
...
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