dsound: Call interface methods properly.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
54e27c17ef
commit
fe8e9daa1b
|
@ -1229,7 +1229,7 @@ static HRESULT WINAPI IKsPropertySetImpl_QueryInterface(IKsPropertySet *iface, R
|
||||||
|
|
||||||
TRACE("(%p,%s,%p)\n",This,debugstr_guid(riid),ppobj);
|
TRACE("(%p,%s,%p)\n",This,debugstr_guid(riid),ppobj);
|
||||||
|
|
||||||
return IDirectSoundBuffer_QueryInterface(&This->IDirectSoundBuffer8_iface, riid, ppobj);
|
return IDirectSoundBuffer8_QueryInterface(&This->IDirectSoundBuffer8_iface, riid, ppobj);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ULONG WINAPI IKsPropertySetImpl_AddRef(IKsPropertySet *iface)
|
static ULONG WINAPI IKsPropertySetImpl_AddRef(IKsPropertySet *iface)
|
||||||
|
|
|
@ -129,7 +129,7 @@ static HRESULT WINAPI IDirectSoundNotifyImpl_QueryInterface(IDirectSoundNotify *
|
||||||
|
|
||||||
TRACE("(%p,%s,%p)\n", This, debugstr_guid(riid), ppobj);
|
TRACE("(%p,%s,%p)\n", This, debugstr_guid(riid), ppobj);
|
||||||
|
|
||||||
return IDirectSoundCaptureBuffer_QueryInterface(&This->IDirectSoundCaptureBuffer8_iface, riid, ppobj);
|
return IDirectSoundCaptureBuffer8_QueryInterface(&This->IDirectSoundCaptureBuffer8_iface, riid, ppobj);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ULONG WINAPI IDirectSoundNotifyImpl_AddRef(IDirectSoundNotify *iface)
|
static ULONG WINAPI IDirectSoundNotifyImpl_AddRef(IDirectSoundNotify *iface)
|
||||||
|
@ -811,7 +811,7 @@ static HRESULT IDirectSoundCaptureBufferImpl_Create(
|
||||||
This->thread = CreateThread(NULL, 0, DSOUND_capture_thread, This, 0, NULL);
|
This->thread = CreateThread(NULL, 0, DSOUND_capture_thread, This, 0, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
IDirectSoundCaptureBuffer_AddRef(&This->IDirectSoundCaptureBuffer8_iface);
|
IDirectSoundCaptureBuffer8_AddRef(&This->IDirectSoundCaptureBuffer8_iface);
|
||||||
*ppobj = This;
|
*ppobj = This;
|
||||||
|
|
||||||
TRACE("returning DS_OK\n");
|
TRACE("returning DS_OK\n");
|
||||||
|
|
|
@ -202,7 +202,7 @@ static HRESULT WINAPI IDirectSoundFullDuplexImpl_Initialize(IDirectSoundFullDupl
|
||||||
TRUE);
|
TRUE);
|
||||||
if (SUCCEEDED(hr)) {
|
if (SUCCEEDED(hr)) {
|
||||||
IUnknown_QueryInterface(This->ds8_unk, &IID_IDirectSound8, (void**)&ds8);
|
IUnknown_QueryInterface(This->ds8_unk, &IID_IDirectSound8, (void**)&ds8);
|
||||||
hr = IDirectSound_Initialize(ds8, render_dev);
|
hr = IDirectSound8_Initialize(ds8, render_dev);
|
||||||
}
|
}
|
||||||
if (hr != DS_OK) {
|
if (hr != DS_OK) {
|
||||||
WARN("Creating/initializing IDirectSound8 failed\n");
|
WARN("Creating/initializing IDirectSound8 failed\n");
|
||||||
|
|
|
@ -1208,7 +1208,7 @@ HRESULT primarybuffer_create(DirectSoundDevice *device, IDirectSoundBufferImpl *
|
||||||
device->pwfx->nBlockAlign, device->pwfx->wBitsPerSample,
|
device->pwfx->nBlockAlign, device->pwfx->wBitsPerSample,
|
||||||
device->pwfx->cbSize);
|
device->pwfx->cbSize);
|
||||||
|
|
||||||
IDirectSoundBuffer_AddRef(&dsb->IDirectSoundBuffer8_iface);
|
IDirectSoundBuffer8_AddRef(&dsb->IDirectSoundBuffer8_iface);
|
||||||
*ppdsb = dsb;
|
*ppdsb = dsb;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -730,7 +730,7 @@ static HRESULT WINAPI IDirectSound3DListenerImpl_QueryInterface(IDirectSound3DLi
|
||||||
|
|
||||||
TRACE("(%p,%s,%p)\n", iface, debugstr_guid(riid), ppobj);
|
TRACE("(%p,%s,%p)\n", iface, debugstr_guid(riid), ppobj);
|
||||||
|
|
||||||
return IDirectSoundBuffer_QueryInterface(&This->IDirectSoundBuffer8_iface, riid, ppobj);
|
return IDirectSoundBuffer8_QueryInterface(&This->IDirectSoundBuffer8_iface, riid, ppobj);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ULONG WINAPI IDirectSound3DListenerImpl_AddRef(IDirectSound3DListener *iface)
|
static ULONG WINAPI IDirectSound3DListenerImpl_AddRef(IDirectSound3DListener *iface)
|
||||||
|
|
Loading…
Reference in New Issue