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
83064d15
Commit
83064d15
authored
Jan 25, 2022
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth: Implement the sink Init method.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7bc708df
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
2 deletions
+9
-2
dmsynth_private.h
dlls/dmsynth/dmsynth_private.h
+1
-0
synthsink.c
dlls/dmsynth/synthsink.c
+5
-1
dmsynth.c
dlls/dmsynth/tests/dmsynth.c
+2
-0
port.c
dlls/dmusic/port.c
+1
-1
No files found.
dlls/dmsynth/dmsynth_private.h
View file @
83064d15
...
...
@@ -77,6 +77,7 @@ struct IDirectMusicSynthSinkImpl {
LONG
ref
;
IReferenceClock
*
latency_clock
;
IReferenceClock
*
master_clock
;
IDirectMusicSynth
*
synth
;
/* No reference hold! */
BOOL
active
;
};
...
...
dlls/dmsynth/synthsink.c
View file @
83064d15
...
...
@@ -96,7 +96,11 @@ static HRESULT WINAPI IDirectMusicSynthSinkImpl_Init(IDirectMusicSynthSink *ifac
{
IDirectMusicSynthSinkImpl
*
This
=
impl_from_IDirectMusicSynthSink
(
iface
);
FIXME
(
"(%p)->(%p): stub
\n
"
,
This
,
synth
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
synth
);
/* Not holding a reference to avoid circular dependencies.
The synth will release the sink during the synth's destruction. */
This
->
synth
=
synth
;
return
S_OK
;
}
...
...
dlls/dmsynth/tests/dmsynth.c
View file @
83064d15
...
...
@@ -131,6 +131,8 @@ static void test_dmsynth(void)
ref_clock_sink
=
get_refcount
(
clock_sink
);
/* This will Init() the SynthSink and finish initializing the Synth */
hr
=
IDirectMusicSynthSink_Init
(
dmsynth_sink2
,
NULL
);
ok
(
hr
==
S_OK
,
"IDirectMusicSynthSink_Init returned: %x
\n
"
,
hr
);
hr
=
IDirectMusicSynth_SetSynthSink
(
dmsynth
,
dmsynth_sink2
);
ok
(
hr
==
S_OK
,
"IDirectMusicSynth_SetSynthSink returned: %x
\n
"
,
hr
);
hr
=
IDirectMusicSynth_SetSynthSink
(
dmsynth
,
dmsynth_sink
);
...
...
dlls/dmusic/port.c
View file @
83064d15
...
...
@@ -195,10 +195,10 @@ static ULONG WINAPI synth_port_Release(IDirectMusicPort *iface)
if
(
!
ref
)
{
dmusic_remove_port
(
This
->
parent
,
iface
);
IDirectMusicSynthSink_Release
(
This
->
synth_sink
);
IDirectMusicSynth_Activate
(
This
->
synth
,
FALSE
);
IDirectMusicSynth_Close
(
This
->
synth
);
IDirectMusicSynth_Release
(
This
->
synth
);
IDirectMusicSynthSink_Release
(
This
->
synth_sink
);
if
(
This
->
dsbuffer
)
IDirectSoundBuffer_Release
(
This
->
dsbuffer
);
if
(
This
->
dsound
)
...
...
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