Commit 8335099b authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

windows.media.devices: Stub DefaultAudio{Capture,Render}DeviceChanged events.

parent c767dc43
...@@ -309,7 +309,10 @@ static HRESULT WINAPI media_device_statics_add_DefaultAudioCaptureDeviceChanged( ...@@ -309,7 +309,10 @@ static HRESULT WINAPI media_device_statics_add_DefaultAudioCaptureDeviceChanged(
EventRegistrationToken *token) EventRegistrationToken *token)
{ {
FIXME("iface %p, handler %p token %p stub!\n", iface, handler, token); FIXME("iface %p, handler %p token %p stub!\n", iface, handler, token);
return E_NOTIMPL; if(!token)
return E_POINTER;
token->value = 1;
return S_OK;
} }
static HRESULT WINAPI media_device_statics_remove_DefaultAudioCaptureDeviceChanged( static HRESULT WINAPI media_device_statics_remove_DefaultAudioCaptureDeviceChanged(
...@@ -317,7 +320,7 @@ static HRESULT WINAPI media_device_statics_remove_DefaultAudioCaptureDeviceChang ...@@ -317,7 +320,7 @@ static HRESULT WINAPI media_device_statics_remove_DefaultAudioCaptureDeviceChang
EventRegistrationToken token) EventRegistrationToken token)
{ {
FIXME("iface %p, token %#I64x stub!\n", iface, token.value); FIXME("iface %p, token %#I64x stub!\n", iface, token.value);
return E_NOTIMPL; return S_OK;
} }
static HRESULT WINAPI media_device_statics_add_DefaultAudioRenderDeviceChanged( static HRESULT WINAPI media_device_statics_add_DefaultAudioRenderDeviceChanged(
...@@ -326,7 +329,10 @@ static HRESULT WINAPI media_device_statics_add_DefaultAudioRenderDeviceChanged( ...@@ -326,7 +329,10 @@ static HRESULT WINAPI media_device_statics_add_DefaultAudioRenderDeviceChanged(
EventRegistrationToken *token) EventRegistrationToken *token)
{ {
FIXME("iface %p, handler %p token %p stub!\n", iface, handler, token); FIXME("iface %p, handler %p token %p stub!\n", iface, handler, token);
return E_NOTIMPL; if(!token)
return E_POINTER;
token->value = 1;
return S_OK;
} }
static HRESULT WINAPI media_device_statics_remove_DefaultAudioRenderDeviceChanged( static HRESULT WINAPI media_device_statics_remove_DefaultAudioRenderDeviceChanged(
...@@ -334,7 +340,7 @@ static HRESULT WINAPI media_device_statics_remove_DefaultAudioRenderDeviceChange ...@@ -334,7 +340,7 @@ static HRESULT WINAPI media_device_statics_remove_DefaultAudioRenderDeviceChange
EventRegistrationToken token) EventRegistrationToken token)
{ {
FIXME("iface %p, token %#I64x stub!\n", iface, token.value); FIXME("iface %p, token %#I64x stub!\n", iface, token.value);
return E_NOTIMPL; return S_OK;
} }
static IMediaDeviceStaticsVtbl media_device_statics_vtbl = { static IMediaDeviceStaticsVtbl media_device_statics_vtbl = {
......
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