Commit 65796159 authored by Davide Beatrici's avatar Davide Beatrici Committed by Alexandre Julliard
Browse files

wineoss: Adapt "get_position_params" struct to mmdevapi's.

parent ae7c8d26
......@@ -1432,7 +1432,8 @@ static HRESULT WINAPI AudioClock_GetPosition(IAudioClock *iface, UINT64 *pos,
return E_POINTER;
params.stream = This->stream;
params.position = pos;
params.device = FALSE;
params.pos = pos;
params.qpctime = qpctime;
OSS_CALL(get_position, &params);
......
......@@ -1311,7 +1311,7 @@ static NTSTATUS oss_get_position(void *args)
{
struct get_position_params *params = args;
struct oss_stream *stream = handle_get_stream(params->stream);
UINT64 *pos = params->position, *qpctime = params->qpctime;
UINT64 *pos = params->pos, *qpctime = params->qpctime;
oss_lock(stream);
......@@ -1928,14 +1928,16 @@ static NTSTATUS oss_wow64_get_position(void *args)
struct
{
stream_handle stream;
BOOL device;
HRESULT result;
PTR32 position;
PTR32 pos;
PTR32 qpctime;
} *params32 = args;
struct get_position_params params =
{
.stream = params32->stream,
.position = ULongToPtr(params32->position),
.device = params32->device,
.pos = ULongToPtr(params32->pos),
.qpctime = ULongToPtr(params32->qpctime)
};
oss_get_position(&params);
......
......@@ -186,8 +186,9 @@ struct get_frequency_params
struct get_position_params
{
stream_handle stream;
BOOL device;
HRESULT result;
UINT64 *position;
UINT64 *pos;
UINT64 *qpctime;
};
......
Supports Markdown
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