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
1e70dbcf
Commit
1e70dbcf
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 some performance IDirectMusicTool methods.
parent
4cb46f1b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
performance.c
dlls/dmime/performance.c
+8
-6
dmime.c
dlls/dmime/tests/dmime.c
+4
-4
No files found.
dlls/dmime/performance.c
View file @
1e70dbcf
...
...
@@ -1356,28 +1356,30 @@ static ULONG WINAPI performance_tool_Release(IDirectMusicTool *iface)
static
HRESULT
WINAPI
performance_tool_Init
(
IDirectMusicTool
*
iface
,
IDirectMusicGraph
*
graph
)
{
struct
performance
*
This
=
impl_from_IDirectMusicTool
(
iface
);
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
graph
);
TRACE
(
"(%p, %p)
\n
"
,
This
,
graph
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
performance_tool_GetMsgDeliveryType
(
IDirectMusicTool
*
iface
,
DWORD
*
type
)
{
struct
performance
*
This
=
impl_from_IDirectMusicTool
(
iface
);
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
type
);
return
E_NOTIMPL
;
TRACE
(
"(%p, %p)
\n
"
,
This
,
type
);
*
type
=
DMUS_PMSGF_TOOL_IMMEDIATE
;
return
S_OK
;
}
static
HRESULT
WINAPI
performance_tool_GetMediaTypeArraySize
(
IDirectMusicTool
*
iface
,
DWORD
*
size
)
{
struct
performance
*
This
=
impl_from_IDirectMusicTool
(
iface
);
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
size
);
return
E_NOTIMPL
;
TRACE
(
"(%p, %p)
\n
"
,
This
,
size
);
*
size
=
0
;
return
S_OK
;
}
static
HRESULT
WINAPI
performance_tool_GetMediaTypes
(
IDirectMusicTool
*
iface
,
DWORD
**
types
,
DWORD
size
)
{
struct
performance
*
This
=
impl_from_IDirectMusicTool
(
iface
);
FIXME
(
"(%p, %p, %lu): stub
\n
"
,
This
,
types
,
size
);
TRACE
(
"(%p, %p, %lu)
\n
"
,
This
,
types
,
size
);
return
E_NOTIMPL
;
}
...
...
dlls/dmime/tests/dmime.c
View file @
1e70dbcf
...
...
@@ -1497,12 +1497,12 @@ static void test_performance_tool(void)
ok
(
hr
==
E_NOTIMPL
,
"got %#lx
\n
"
,
hr
);
value
=
0xdeadbeef
;
hr
=
IDirectMusicTool_GetMsgDeliveryType
(
tool
,
&
value
);
todo_wine
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
todo_wine
ok
(
value
==
DMUS_PMSGF_TOOL_IMMEDIATE
,
"got %#lx
\n
"
,
value
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
ok
(
value
==
DMUS_PMSGF_TOOL_IMMEDIATE
,
"got %#lx
\n
"
,
value
);
value
=
0xdeadbeef
;
hr
=
IDirectMusicTool_GetMediaTypeArraySize
(
tool
,
&
value
);
todo_wine
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
todo_wine
ok
(
value
==
0
,
"got %#lx
\n
"
,
value
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
ok
(
value
==
0
,
"got %#lx
\n
"
,
value
);
hr
=
IDirectMusicTool_GetMediaTypes
(
tool
,
(
DWORD
**
)
&
types
,
64
);
ok
(
hr
==
E_NOTIMPL
,
"got %#lx
\n
"
,
hr
);
hr
=
IDirectMusicTool_ProcessPMsg
(
tool
,
performance
,
&
msg
);
...
...
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