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
29a76fb5
Commit
29a76fb5
authored
Aug 29, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Oct 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth: Do nothing in IDirectMusicSynth_SetMasterClock.
parent
f00d8639
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
synth.c
dlls/dmsynth/synth.c
+3
-4
dmsynth.c
dlls/dmsynth/tests/dmsynth.c
+3
-3
No files found.
dlls/dmsynth/synth.c
View file @
29a76fb5
...
@@ -915,10 +915,9 @@ static HRESULT WINAPI synth_SetMasterClock(IDirectMusicSynth8 *iface,
...
@@ -915,10 +915,9 @@ static HRESULT WINAPI synth_SetMasterClock(IDirectMusicSynth8 *iface,
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
clock
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
clock
);
if
(
!
This
->
sink
)
if
(
!
clock
)
return
DMUS_E_NOSYNTHSINK
;
return
E_POINTER
;
return
S_OK
;
return
IDirectMusicSynthSink_SetMasterClock
(
This
->
sink
,
clock
);
}
}
static
HRESULT
WINAPI
synth_GetLatencyClock
(
IDirectMusicSynth8
*
iface
,
static
HRESULT
WINAPI
synth_GetLatencyClock
(
IDirectMusicSynth8
*
iface
,
...
...
dlls/dmsynth/tests/dmsynth.c
View file @
29a76fb5
...
@@ -1036,19 +1036,19 @@ static void test_IDirectMusicSynth(void)
...
@@ -1036,19 +1036,19 @@ static void test_IDirectMusicSynth(void)
/* SetMasterClock does nothing */
/* SetMasterClock does nothing */
hr
=
IDirectMusicSynth_SetMasterClock
(
synth
,
NULL
);
hr
=
IDirectMusicSynth_SetMasterClock
(
synth
,
NULL
);
todo_wine
ok
(
hr
==
E_POINTER
,
"got %#lx
\n
"
,
hr
);
ok
(
hr
==
E_POINTER
,
"got %#lx
\n
"
,
hr
);
hr
=
IDirectMusicSynth_SetMasterClock
(
synth
,
clock
);
hr
=
IDirectMusicSynth_SetMasterClock
(
synth
,
clock
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
ref
=
get_refcount
(
clock
);
ref
=
get_refcount
(
clock
);
todo_wine
ok
(
ref
==
1
,
"got %lu
\n
"
,
ref
);
todo_wine
ok
(
ref
==
1
,
"got %lu
\n
"
,
ref
);
hr
=
IDirectMusicSynth_Activate
(
synth
,
TRUE
);
hr
=
IDirectMusicSynth_Activate
(
synth
,
TRUE
);
todo_wine
ok
(
hr
==
DMUS_E_SYNTHNOTCONFIGURED
,
"got %#lx
\n
"
,
hr
);
ok
(
hr
==
DMUS_E_SYNTHNOTCONFIGURED
,
"got %#lx
\n
"
,
hr
);
/* SetMasterClock needs to be called on the sink */
/* SetMasterClock needs to be called on the sink */
hr
=
IDirectMusicSynthSink_SetMasterClock
(
sink
,
clock
);
hr
=
IDirectMusicSynthSink_SetMasterClock
(
sink
,
clock
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
hr
=
IDirectMusicSynth_Activate
(
synth
,
TRUE
);
hr
=
IDirectMusicSynth_Activate
(
synth
,
TRUE
);
todo_wine
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
hr
=
IDirectMusicSynth_Activate
(
synth
,
TRUE
);
hr
=
IDirectMusicSynth_Activate
(
synth
,
TRUE
);
ok
(
hr
==
S_FALSE
,
"got %#lx
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
,
"got %#lx
\n
"
,
hr
);
...
...
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