mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 12:04:09 +00:00
dmband: Semi-stub IDirectMusicBand CreateSegment.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
36e6ea9767
commit
7bb9d62e70
|
@ -90,11 +90,27 @@ static ULONG WINAPI IDirectMusicBandImpl_Release(IDirectMusicBand *iface)
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI IDirectMusicBandImpl_CreateSegment(IDirectMusicBand *iface,
|
static HRESULT WINAPI IDirectMusicBandImpl_CreateSegment(IDirectMusicBand *iface,
|
||||||
IDirectMusicSegment **ppSegment)
|
IDirectMusicSegment **segment)
|
||||||
{
|
{
|
||||||
IDirectMusicBandImpl *This = impl_from_IDirectMusicBand(iface);
|
IDirectMusicBandImpl *This = impl_from_IDirectMusicBand(iface);
|
||||||
FIXME("(%p, %p): stub\n", This, ppSegment);
|
HRESULT hr;
|
||||||
return S_OK;
|
DMUS_BAND_PARAM bandparam;
|
||||||
|
|
||||||
|
FIXME("(%p, %p): semi-stub\n", This, segment);
|
||||||
|
|
||||||
|
hr = CoCreateInstance(&CLSID_DirectMusicSegment, NULL, CLSCTX_INPROC,
|
||||||
|
&IID_IDirectMusicSegment, (void**)segment);
|
||||||
|
if (FAILED(hr))
|
||||||
|
return hr;
|
||||||
|
|
||||||
|
bandparam.mtTimePhysical = 0;
|
||||||
|
bandparam.pBand = &This->IDirectMusicBand_iface;
|
||||||
|
IDirectMusicBand_AddRef(bandparam.pBand);
|
||||||
|
hr = IDirectMusicSegment_SetParam(*segment, &GUID_BandParam, 0xffffffff, DMUS_SEG_ALLTRACKS,
|
||||||
|
0, &bandparam);
|
||||||
|
IDirectMusicBand_Release(bandparam.pBand);
|
||||||
|
|
||||||
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI IDirectMusicBandImpl_Download(IDirectMusicBand *iface,
|
static HRESULT WINAPI IDirectMusicBandImpl_Download(IDirectMusicBand *iface,
|
||||||
|
|
Loading…
Reference in a new issue