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
42d18a32
Commit
42d18a32
authored
May 03, 2012
by
Christian Costa
Committed by
Alexandre Julliard
May 08, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth: Add tests for querying IKsControl for Synth and SynthSink objects.
parent
0ce9eb7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
dmsynth.c
dlls/dmsynth/tests/dmsynth.c
+12
-0
No files found.
dlls/dmsynth/tests/dmsynth.c
View file @
42d18a32
...
...
@@ -28,6 +28,7 @@
#include "initguid.h"
#include "dmusics.h"
#include "dmusici.h"
#include "dmksctrl.h"
static
void
test_dmsynth
(
void
)
{
...
...
@@ -35,6 +36,8 @@ static void test_dmsynth(void)
IDirectMusicSynthSink
*
dmsynth_sink
=
NULL
;
IReferenceClock
*
clock_synth
=
NULL
;
IReferenceClock
*
clock_sink
=
NULL
;
IKsControl
*
control_synth
=
NULL
;
IKsControl
*
control_sink
=
NULL
;
HRESULT
hr
;
hr
=
CoCreateInstance
(
&
CLSID_DirectMusicSynth
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectMusicSynth
,
(
LPVOID
*
)
&
dmsynth
);
...
...
@@ -47,6 +50,11 @@ static void test_dmsynth(void)
hr
=
CoCreateInstance
(
&
CLSID_DirectMusicSynthSink
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectMusicSynthSink
,
(
LPVOID
*
)
&
dmsynth_sink
);
ok
(
hr
==
S_OK
,
"CoCreateInstance returned: %x
\n
"
,
hr
);
hr
=
IDirectMusicSynth_QueryInterface
(
dmsynth
,
&
IID_IKsControl
,
(
LPVOID
*
)
&
control_synth
);
todo_wine
ok
(
hr
==
S_OK
,
"IDirectMusicSynth_QueryInterface returned: %x
\n
"
,
hr
);
hr
=
IDirectMusicSynthSink_QueryInterface
(
dmsynth_sink
,
&
IID_IKsControl
,
(
LPVOID
*
)
&
control_sink
);
todo_wine
ok
(
hr
==
S_OK
,
"IDirectMusicSynthSink_QueryInterface returned: %x
\n
"
,
hr
);
/* Synth has no default clock */
hr
=
IDirectMusicSynth_GetLatencyClock
(
dmsynth
,
&
clock_synth
);
ok
(
hr
==
DMUS_E_NOSYNTHSINK
,
"IDirectMusicSynth_GetLatencyClock returned: %x
\n
"
,
hr
);
...
...
@@ -66,6 +74,10 @@ static void test_dmsynth(void)
ok
(
clock_synth
!=
NULL
,
"No clock returned
\n
"
);
ok
(
clock_synth
==
clock_sink
,
"Synth and SynthSink clocks are not the same
\n
"
);
if
(
control_synth
)
IDirectMusicSynth_Release
(
control_synth
);
if
(
control_sink
)
IDirectMusicSynth_Release
(
control_sink
);
if
(
clock_synth
)
IReferenceClock_Release
(
clock_synth
);
if
(
clock_sink
)
...
...
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