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
bdea8924
Commit
bdea8924
authored
Jan 21, 2022
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth: Implement SetMasterClock() for the sink.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
98ecff27
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
dmsynth_private.h
dlls/dmsynth/dmsynth_private.h
+3
-4
synthsink.c
dlls/dmsynth/synthsink.c
+11
-1
No files found.
dlls/dmsynth/dmsynth_private.h
View file @
bdea8924
...
@@ -72,13 +72,12 @@ struct IDirectMusicSynth8Impl {
...
@@ -72,13 +72,12 @@ struct IDirectMusicSynth8Impl {
* IDirectMusicSynthSinkImpl implementation structure
* IDirectMusicSynthSinkImpl implementation structure
*/
*/
struct
IDirectMusicSynthSinkImpl
{
struct
IDirectMusicSynthSinkImpl
{
/* IUnknown fields */
IDirectMusicSynthSink
IDirectMusicSynthSink_iface
;
IDirectMusicSynthSink
IDirectMusicSynthSink_iface
;
IKsControl
IKsControl_iface
;
IKsControl
IKsControl_iface
;
LONG
ref
;
LONG
ref
;
IReferenceClock
*
latency_clock
;
/* IDirectMusicSynthSinkImpl fields */
IReferenceClock
*
master_clock
;
IReferenceClock
*
latency_clock
;
BOOL
active
;
};
};
/**********************************************************************
/**********************************************************************
...
...
dlls/dmsynth/synthsink.c
View file @
bdea8924
...
@@ -81,6 +81,8 @@ static ULONG WINAPI IDirectMusicSynthSinkImpl_Release(IDirectMusicSynthSink *ifa
...
@@ -81,6 +81,8 @@ static ULONG WINAPI IDirectMusicSynthSinkImpl_Release(IDirectMusicSynthSink *ifa
if
(
!
ref
)
{
if
(
!
ref
)
{
if
(
This
->
latency_clock
)
if
(
This
->
latency_clock
)
IReferenceClock_Release
(
This
->
latency_clock
);
IReferenceClock_Release
(
This
->
latency_clock
);
if
(
This
->
master_clock
)
IReferenceClock_Release
(
This
->
master_clock
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
DMSYNTH_UnlockModule
();
DMSYNTH_UnlockModule
();
}
}
...
@@ -104,7 +106,15 @@ static HRESULT WINAPI IDirectMusicSynthSinkImpl_SetMasterClock(IDirectMusicSynth
...
@@ -104,7 +106,15 @@ static HRESULT WINAPI IDirectMusicSynthSinkImpl_SetMasterClock(IDirectMusicSynth
{
{
IDirectMusicSynthSinkImpl
*
This
=
impl_from_IDirectMusicSynthSink
(
iface
);
IDirectMusicSynthSinkImpl
*
This
=
impl_from_IDirectMusicSynthSink
(
iface
);
FIXME
(
"(%p)->(%p): stub
\n
"
,
This
,
clock
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
clock
);
if
(
!
clock
)
return
E_POINTER
;
if
(
This
->
active
)
return
E_FAIL
;
IReferenceClock_AddRef
(
clock
);
This
->
master_clock
=
clock
;
return
S_OK
;
return
S_OK
;
}
}
...
...
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