Commit 1e70dbcf authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

dmime: Implement some performance IDirectMusicTool methods.

parent 4cb46f1b
...@@ -1356,28 +1356,30 @@ static ULONG WINAPI performance_tool_Release(IDirectMusicTool *iface) ...@@ -1356,28 +1356,30 @@ static ULONG WINAPI performance_tool_Release(IDirectMusicTool *iface)
static HRESULT WINAPI performance_tool_Init(IDirectMusicTool *iface, IDirectMusicGraph *graph) static HRESULT WINAPI performance_tool_Init(IDirectMusicTool *iface, IDirectMusicGraph *graph)
{ {
struct performance *This = impl_from_IDirectMusicTool(iface); struct performance *This = impl_from_IDirectMusicTool(iface);
FIXME("(%p, %p): stub\n", This, graph); TRACE("(%p, %p)\n", This, graph);
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI performance_tool_GetMsgDeliveryType(IDirectMusicTool *iface, DWORD *type) static HRESULT WINAPI performance_tool_GetMsgDeliveryType(IDirectMusicTool *iface, DWORD *type)
{ {
struct performance *This = impl_from_IDirectMusicTool(iface); struct performance *This = impl_from_IDirectMusicTool(iface);
FIXME("(%p, %p): stub\n", This, type); TRACE("(%p, %p)\n", This, type);
return E_NOTIMPL; *type = DMUS_PMSGF_TOOL_IMMEDIATE;
return S_OK;
} }
static HRESULT WINAPI performance_tool_GetMediaTypeArraySize(IDirectMusicTool *iface, DWORD *size) static HRESULT WINAPI performance_tool_GetMediaTypeArraySize(IDirectMusicTool *iface, DWORD *size)
{ {
struct performance *This = impl_from_IDirectMusicTool(iface); struct performance *This = impl_from_IDirectMusicTool(iface);
FIXME("(%p, %p): stub\n", This, size); TRACE("(%p, %p)\n", This, size);
return E_NOTIMPL; *size = 0;
return S_OK;
} }
static HRESULT WINAPI performance_tool_GetMediaTypes(IDirectMusicTool *iface, DWORD **types, DWORD size) static HRESULT WINAPI performance_tool_GetMediaTypes(IDirectMusicTool *iface, DWORD **types, DWORD size)
{ {
struct performance *This = impl_from_IDirectMusicTool(iface); 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; return E_NOTIMPL;
} }
......
...@@ -1497,12 +1497,12 @@ static void test_performance_tool(void) ...@@ -1497,12 +1497,12 @@ static void test_performance_tool(void)
ok(hr == E_NOTIMPL, "got %#lx\n", hr); ok(hr == E_NOTIMPL, "got %#lx\n", hr);
value = 0xdeadbeef; value = 0xdeadbeef;
hr = IDirectMusicTool_GetMsgDeliveryType(tool, &value); hr = IDirectMusicTool_GetMsgDeliveryType(tool, &value);
todo_wine ok(hr == S_OK, "got %#lx\n", hr); ok(hr == S_OK, "got %#lx\n", hr);
todo_wine ok(value == DMUS_PMSGF_TOOL_IMMEDIATE, "got %#lx\n", value); ok(value == DMUS_PMSGF_TOOL_IMMEDIATE, "got %#lx\n", value);
value = 0xdeadbeef; value = 0xdeadbeef;
hr = IDirectMusicTool_GetMediaTypeArraySize(tool, &value); hr = IDirectMusicTool_GetMediaTypeArraySize(tool, &value);
todo_wine ok(hr == S_OK, "got %#lx\n", hr); ok(hr == S_OK, "got %#lx\n", hr);
todo_wine ok(value == 0, "got %#lx\n", value); ok(value == 0, "got %#lx\n", value);
hr = IDirectMusicTool_GetMediaTypes(tool, (DWORD **)&types, 64); hr = IDirectMusicTool_GetMediaTypes(tool, (DWORD **)&types, 64);
ok(hr == E_NOTIMPL, "got %#lx\n", hr); ok(hr == E_NOTIMPL, "got %#lx\n", hr);
hr = IDirectMusicTool_ProcessPMsg(tool, performance, &msg); hr = IDirectMusicTool_ProcessPMsg(tool, performance, &msg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment