dmime: Rename params in IDirectMusicPerformance8Impl_AssignPChannel & IDirectMusicPerformance8Impl_PChannelInfo.

This commit is contained in:
Christian Costa 2012-09-21 16:02:10 +02:00 committed by Alexandre Julliard
parent b3b7616f79
commit 1acf5a0401
1 changed files with 21 additions and 18 deletions

View File

@ -684,32 +684,35 @@ static HRESULT WINAPI IDirectMusicPerformance8Impl_AssignPChannelBlock(IDirectMu
} }
static HRESULT WINAPI IDirectMusicPerformance8Impl_AssignPChannel(IDirectMusicPerformance8 *iface, static HRESULT WINAPI IDirectMusicPerformance8Impl_AssignPChannel(IDirectMusicPerformance8 *iface,
DWORD dwPChannel, IDirectMusicPort *pPort, DWORD dwGroup, DWORD dwMChannel) DWORD PChannel, IDirectMusicPort *port, DWORD group, DWORD MChannel)
{ {
IDirectMusicPerformance8Impl *This = impl_from_IDirectMusicPerformance8(iface); IDirectMusicPerformance8Impl *This = impl_from_IDirectMusicPerformance8(iface);
TRACE("(%p, %d, %p, %d, %d)\n", This, dwPChannel, pPort, dwGroup, dwMChannel); TRACE("(%p)->(%d, %p, %d, %d)\n", This, PChannel, port, group, MChannel);
if (NULL == pPort) return E_POINTER;
This->PChannel[dwPChannel].port = pPort; if (!port)
This->PChannel[dwPChannel].group = dwGroup; return E_POINTER;
This->PChannel[dwPChannel].channel = dwMChannel;
This->PChannel[PChannel].port = port;
This->PChannel[PChannel].group = group;
This->PChannel[PChannel].channel = MChannel;
return S_OK; return S_OK;
} }
static HRESULT WINAPI IDirectMusicPerformance8Impl_PChannelInfo(IDirectMusicPerformance8 *iface, static HRESULT WINAPI IDirectMusicPerformance8Impl_PChannelInfo(IDirectMusicPerformance8 *iface,
DWORD dwPChannel, IDirectMusicPort **ppPort, DWORD *pdwGroup, DWORD *pdwMChannel) DWORD PChannel, IDirectMusicPort **port, DWORD *group, DWORD *MChannel)
{ {
IDirectMusicPerformance8Impl *This = impl_from_IDirectMusicPerformance8(iface); IDirectMusicPerformance8Impl *This = impl_from_IDirectMusicPerformance8(iface);
DMUS_PORTPARAMS8 dmusportparams; DMUS_PORTPARAMS8 port_params;
GUID def; GUID default_port;
FIXME("(%p, %d, %p, %p, %p): stub\n", This, dwPChannel, ppPort, pdwGroup, pdwMChannel); FIXME("(%p)->(%d, %p, %p, %p): stub\n", This, PChannel, port, group, MChannel);
dmusportparams.dwSize = sizeof(DMUS_PORTPARAMS8); port_params.dwSize = sizeof(DMUS_PORTPARAMS8);
dmusportparams.dwValidParams = 0; port_params.dwValidParams = 0;
IDirectMusic8_GetDefaultPort(This->pDirectMusic, &def); IDirectMusic8_GetDefaultPort(This->pDirectMusic, &default_port);
IDirectMusic8_CreatePort(This->pDirectMusic, &def, &dmusportparams, ppPort, NULL); IDirectMusic8_CreatePort(This->pDirectMusic, &default_port, &port_params, port, NULL);
return S_OK; return S_OK;
} }