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
be2cdd3c
Commit
be2cdd3c
authored
Aug 27, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth: Implement IDirectMusicSynthSink_SetDirectSound semi-stub.
parent
d3b19150
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
synthsink.c
dlls/dmsynth/synthsink.c
+12
-1
dmsynth.c
dlls/dmsynth/tests/dmsynth.c
+1
-1
No files found.
dlls/dmsynth/synthsink.c
View file @
be2cdd3c
...
...
@@ -34,6 +34,7 @@ struct synth_sink
IReferenceClock
*
latency_clock
;
IReferenceClock
*
master_clock
;
IDirectMusicSynth
*
synth
;
/* No reference hold! */
IDirectSound
*
dsound
;
BOOL
active
;
};
...
...
@@ -181,7 +182,17 @@ static HRESULT WINAPI synth_sink_SetDirectSound(IDirectMusicSynthSink *iface,
{
struct
synth_sink
*
This
=
impl_from_IDirectMusicSynthSink
(
iface
);
FIXME
(
"(%p)->(%p, %p): stub
\n
"
,
This
,
dsound
,
dsound_buffer
);
TRACE
(
"(%p)->(%p, %p)
\n
"
,
This
,
dsound
,
dsound_buffer
);
if
(
dsound_buffer
)
FIXME
(
"Ignoring IDirectSoundBuffer parameter.
\n
"
);
if
(
This
->
active
)
return
DMUS_E_SYNTHACTIVE
;
if
(
This
->
dsound
)
IDirectSound_Release
(
This
->
dsound
);
This
->
dsound
=
NULL
;
if
(
!
dsound
)
return
S_OK
;
if
(
!
This
->
synth
)
return
DMUS_E_SYNTHNOTCONFIGURED
;
if
((
This
->
dsound
=
dsound
))
IDirectSound_AddRef
(
This
->
dsound
);
return
S_OK
;
}
...
...
dlls/dmsynth/tests/dmsynth.c
View file @
be2cdd3c
...
...
@@ -1234,7 +1234,7 @@ static void test_IDirectMusicSynthSink(void)
hr
=
IDirectMusicSynthSink_SetDirectSound
(
sink
,
NULL
,
NULL
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
hr
=
IDirectMusicSynthSink_SetDirectSound
(
sink
,
dsound
,
NULL
);
todo_wine
ok
(
hr
==
DMUS_E_SYNTHNOTCONFIGURED
,
"got %#lx
\n
"
,
hr
);
ok
(
hr
==
DMUS_E_SYNTHNOTCONFIGURED
,
"got %#lx
\n
"
,
hr
);
/* Activate requires a synth, dsound and a clock */
ref
=
get_refcount
(
synth
);
...
...
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