Commit 3c4d8360 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

dmime: Implement IDirectMusicPerformance_DownloadInstrument.

parent 96b0bdd7
...@@ -828,14 +828,24 @@ static HRESULT WINAPI performance_PChannelInfo(IDirectMusicPerformance8 *iface, ...@@ -828,14 +828,24 @@ static HRESULT WINAPI performance_PChannelInfo(IDirectMusicPerformance8 *iface,
} }
static HRESULT WINAPI performance_DownloadInstrument(IDirectMusicPerformance8 *iface, static HRESULT WINAPI performance_DownloadInstrument(IDirectMusicPerformance8 *iface,
IDirectMusicInstrument *pInst, DWORD dwPChannel, IDirectMusicInstrument *instrument, DWORD port_channel,
IDirectMusicDownloadedInstrument **ppDownInst, DMUS_NOTERANGE *pNoteRanges, IDirectMusicDownloadedInstrument **downloaded, DMUS_NOTERANGE *note_ranges,
DWORD dwNumNoteRanges, IDirectMusicPort **ppPort, DWORD *pdwGroup, DWORD *pdwMChannel) DWORD note_range_count, IDirectMusicPort **port, DWORD *group, DWORD *music_channel)
{ {
struct performance *This = impl_from_IDirectMusicPerformance8(iface); struct performance *This = impl_from_IDirectMusicPerformance8(iface);
IDirectMusicPort *tmp_port = NULL;
HRESULT hr;
FIXME("(%p, %p, %ld, %p, %p, %ld, %p, %p, %p): stub\n", This, pInst, dwPChannel, ppDownInst, pNoteRanges, dwNumNoteRanges, ppPort, pdwGroup, pdwMChannel); TRACE("(%p, %p, %ld, %p, %p, %ld, %p, %p, %p)\n", This, instrument, port_channel, downloaded,
return S_OK; note_ranges, note_range_count, port, group, music_channel);
if (!port) port = &tmp_port;
if (FAILED(hr = IDirectMusicPerformance_PChannelInfo(iface, port_channel, port, group, music_channel)))
return hr;
hr = IDirectMusicPort_DownloadInstrument(*port, instrument, downloaded, note_ranges, note_range_count);
if (tmp_port) IDirectMusicPort_Release(tmp_port);
return hr;
} }
static HRESULT WINAPI performance_Invalidate(IDirectMusicPerformance8 *iface, MUSIC_TIME mtTime, DWORD dwFlags) static HRESULT WINAPI performance_Invalidate(IDirectMusicPerformance8 *iface, MUSIC_TIME mtTime, DWORD dwFlags)
......
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