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
09dc4a3f
Commit
09dc4a3f
authored
Sep 04, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Implement performance IDirectMusicGraph_StampPMsg.
parent
98db0c75
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
19 deletions
+48
-19
performance.c
dlls/dmime/performance.c
+31
-2
dmime.c
dlls/dmime/tests/dmime.c
+17
-17
No files found.
dlls/dmime/performance.c
View file @
09dc4a3f
...
...
@@ -1293,8 +1293,37 @@ static ULONG WINAPI performance_graph_Release(IDirectMusicGraph *iface)
static
HRESULT
WINAPI
performance_graph_StampPMsg
(
IDirectMusicGraph
*
iface
,
DMUS_PMSG
*
msg
)
{
struct
performance
*
This
=
impl_from_IDirectMusicGraph
(
iface
);
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
msg
);
return
E_NOTIMPL
;
HRESULT
hr
;
TRACE
(
"(%p, %p)
\n
"
,
This
,
msg
);
if
(
!
msg
)
return
E_POINTER
;
/* FIXME: Implement segment and audio path graphs support */
if
(
!
This
->
pToolGraph
)
hr
=
DMUS_S_LAST_TOOL
;
else
if
(
FAILED
(
hr
=
IDirectMusicGraph_StampPMsg
(
This
->
pToolGraph
,
msg
)))
return
hr
;
if
(
msg
->
pGraph
)
{
IDirectMusicTool_Release
(
msg
->
pGraph
);
msg
->
pGraph
=
NULL
;
}
if
(
hr
==
DMUS_S_LAST_TOOL
)
{
if
(
msg
->
pTool
)
IDirectMusicTool_Release
(
msg
->
pTool
);
msg
->
pTool
=
&
This
->
IDirectMusicTool_iface
;
IDirectMusicTool_AddRef
(
msg
->
pTool
);
return
S_OK
;
}
if
(
SUCCEEDED
(
hr
))
{
msg
->
pGraph
=
&
This
->
IDirectMusicGraph_iface
;
IDirectMusicTool_AddRef
(
msg
->
pGraph
);
}
return
hr
;
}
static
HRESULT
WINAPI
performance_graph_InsertTool
(
IDirectMusicGraph
*
iface
,
IDirectMusicTool
*
tool
,
...
...
dlls/dmime/tests/dmime.c
View file @
09dc4a3f
...
...
@@ -1544,13 +1544,13 @@ static void test_performance_graph(void)
/* test IDirectMusicGraph_StampPMsg usage */
hr
=
IDirectMusicGraph_StampPMsg
(
graph
,
NULL
);
todo_wine
ok
(
hr
==
E_POINTER
,
"got %#lx
\n
"
,
hr
);
ok
(
hr
==
E_POINTER
,
"got %#lx
\n
"
,
hr
);
memset
(
&
msg
,
0
,
sizeof
(
msg
));
hr
=
IDirectMusicGraph_StampPMsg
(
graph
,
&
msg
);
todo_wine
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
ok
(
msg
.
pGraph
==
NULL
,
"got %p
\n
"
,
msg
.
pGraph
);
todo_wine
ok
(
msg
.
pTool
!=
NULL
,
"got %p
\n
"
,
msg
.
pTool
);
if
(
msg
.
pTool
)
check_interface
(
msg
.
pTool
,
&
IID_IDirectMusicPerformance
,
TRUE
);
ok
(
msg
.
pTool
!=
NULL
,
"got %p
\n
"
,
msg
.
pTool
);
check_interface
(
msg
.
pTool
,
&
IID_IDirectMusicPerformance
,
TRUE
);
ok
(
!
msg
.
dwSize
,
"got %ld
\n
"
,
msg
.
dwSize
);
ok
(
!
msg
.
rtTime
,
"got %I64d
\n
"
,
msg
.
rtTime
);
...
...
@@ -1564,12 +1564,12 @@ static void test_performance_graph(void)
ok
(
!
msg
.
punkUser
,
"got %p
\n
"
,
msg
.
punkUser
);
hr
=
IDirectMusicGraph_StampPMsg
(
graph
,
&
msg
);
todo_wine
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
ok
(
msg
.
pGraph
==
NULL
,
"got %p
\n
"
,
msg
.
pGraph
);
todo_wine
ok
(
msg
.
pTool
!=
NULL
,
"got %p
\n
"
,
msg
.
pTool
);
if
(
msg
.
pTool
)
check_interface
(
msg
.
pTool
,
&
IID_IDirectMusicPerformance
,
TRUE
);
ok
(
msg
.
pTool
!=
NULL
,
"got %p
\n
"
,
msg
.
pTool
);
check_interface
(
msg
.
pTool
,
&
IID_IDirectMusicPerformance
,
TRUE
);
if
(
msg
.
pTool
)
IDirectMusicTool_Release
(
msg
.
pTool
);
IDirectMusicTool_Release
(
msg
.
pTool
);
msg
.
pTool
=
NULL
;
IDirectMusicGraph_Release
(
graph
);
...
...
@@ -1604,9 +1604,9 @@ static void test_performance_graph(void)
memset
(
&
msg
,
0
,
sizeof
(
msg
));
hr
=
IDirectMusicGraph_StampPMsg
(
graph
,
&
msg
);
todo_wine
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
todo_wine
ok
(
msg
.
pGraph
==
graph
,
"got %p
\n
"
,
msg
.
pGraph
);
todo_wine
ok
(
msg
.
pTool
==
tool
,
"got %p
\n
"
,
msg
.
pTool
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
ok
(
msg
.
pGraph
==
graph
,
"got %p
\n
"
,
msg
.
pGraph
);
ok
(
msg
.
pTool
==
tool
,
"got %p
\n
"
,
msg
.
pTool
);
ok
(
!
msg
.
dwSize
,
"got %ld
\n
"
,
msg
.
dwSize
);
ok
(
!
msg
.
rtTime
,
"got %I64d
\n
"
,
msg
.
rtTime
);
...
...
@@ -1620,12 +1620,12 @@ static void test_performance_graph(void)
ok
(
!
msg
.
punkUser
,
"got %p
\n
"
,
msg
.
punkUser
);
hr
=
IDirectMusicGraph_StampPMsg
(
graph
,
&
msg
);
todo_wine
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
ok
(
msg
.
pGraph
==
NULL
,
"got %p
\n
"
,
msg
.
pGraph
);
todo_wine
ok
(
msg
.
pTool
!=
NULL
,
"got %p
\n
"
,
msg
.
pTool
);
if
(
msg
.
pTool
)
check_interface
(
msg
.
pTool
,
&
IID_IDirectMusicPerformance
,
TRUE
);
ok
(
msg
.
pTool
!=
NULL
,
"got %p
\n
"
,
msg
.
pTool
);
check_interface
(
msg
.
pTool
,
&
IID_IDirectMusicPerformance
,
TRUE
);
if
(
msg
.
pTool
)
IDirectMusicTool_Release
(
msg
.
pTool
);
IDirectMusicTool_Release
(
msg
.
pTool
);
msg
.
pTool
=
NULL
;
IDirectMusicGraph_Release
(
graph
);
...
...
@@ -1871,7 +1871,7 @@ static void test_performance_pmsg(void)
hr
=
IDirectMusicPerformance_QueryInterface
(
performance
,
&
IID_IDirectMusicGraph
,
(
void
**
)
&
graph
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
hr
=
IDirectMusicGraph_StampPMsg
(
graph
,
msg
);
todo_wine
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
IDirectMusicGraph_Release
(
graph
);
hr
=
IDirectMusicPerformance_SendPMsg
(
performance
,
msg
);
...
...
@@ -1901,7 +1901,7 @@ static void test_performance_pmsg(void)
hr
=
IDirectMusicPerformance_QueryInterface
(
performance
,
&
IID_IDirectMusicGraph
,
(
void
**
)
&
graph
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
hr
=
IDirectMusicGraph_StampPMsg
(
graph
,
msg
);
todo_wine
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
IDirectMusicGraph_Release
(
graph
);
msg
->
dwFlags
&=
~
(
DMUS_PMSGF_TOOL_IMMEDIATE
|
DMUS_PMSGF_TOOL_QUEUE
|
DMUS_PMSGF_TOOL_ATTIME
);
...
...
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