Commit 45cab273 authored by Davide Beatrici's avatar Davide Beatrici Committed by Alexandre Julliard

wineoss: Use mmdevapi's AudioClient's SetEventHandle, Reset, Stop.

parent cc3362ec
......@@ -805,58 +805,12 @@ static HRESULT WINAPI AudioClient_Start(IAudioClient3 *iface)
return params.result;
}
static HRESULT WINAPI AudioClient_Stop(IAudioClient3 *iface)
{
ACImpl *This = impl_from_IAudioClient3(iface);
struct stop_params params;
TRACE("(%p)\n", This);
if(!This->stream)
return AUDCLNT_E_NOT_INITIALIZED;
extern HRESULT WINAPI client_Stop(IAudioClient3 *iface);
params.stream = This->stream;
OSS_CALL(stop, &params);
return params.result;
}
static HRESULT WINAPI AudioClient_Reset(IAudioClient3 *iface)
{
ACImpl *This = impl_from_IAudioClient3(iface);
struct reset_params params;
TRACE("(%p)\n", This);
if(!This->stream)
return AUDCLNT_E_NOT_INITIALIZED;
extern HRESULT WINAPI client_Reset(IAudioClient3 *iface);
params.stream = This->stream;
OSS_CALL(reset, &params);
return params.result;
}
static HRESULT WINAPI AudioClient_SetEventHandle(IAudioClient3 *iface,
HANDLE event)
{
ACImpl *This = impl_from_IAudioClient3(iface);
struct set_event_handle_params params;
TRACE("(%p)->(%p)\n", This, event);
if(!event)
return E_INVALIDARG;
if(!This->stream)
return AUDCLNT_E_NOT_INITIALIZED;
params.stream = This->stream;
params.event = event;
OSS_CALL(set_event_handle, &params);
return params.result;
}
extern HRESULT WINAPI client_SetEventHandle(IAudioClient3 *iface,
HANDLE event);
extern HRESULT WINAPI client_GetService(IAudioClient3 *iface, REFIID riid,
void **ppv);
......@@ -895,9 +849,9 @@ static const IAudioClient3Vtbl AudioClient3_Vtbl =
AudioClient_GetMixFormat,
AudioClient_GetDevicePeriod,
AudioClient_Start,
AudioClient_Stop,
AudioClient_Reset,
AudioClient_SetEventHandle,
client_Stop,
client_Reset,
client_SetEventHandle,
client_GetService,
client_IsOffloadCapable,
client_SetClientProperties,
......
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