Commit aef3a3b3 authored by Davide Beatrici's avatar Davide Beatrici Committed by Alexandre Julliard

winepulse: Adapt "get_device_period_params" struct to mmdevapi's.

parent 005123ba
......@@ -1172,7 +1172,7 @@ static HRESULT WINAPI AudioClient_GetDevicePeriod(IAudioClient3 *iface,
return E_POINTER;
params.flow = This->dataflow;
params.pulse_name = This->pulse_name;
params.device = This->pulse_name;
params.def_period = defperiod;
params.min_period = minperiod;
......
......@@ -2072,7 +2072,7 @@ static NTSTATUS pulse_get_device_period(void *args)
{
struct get_device_period_params *params = args;
params->result = get_device_period_helper(params->flow, params->pulse_name, params->def_period, params->min_period);
params->result = get_device_period_helper(params->flow, params->device, params->def_period, params->min_period);
return STATUS_SUCCESS;
}
......@@ -2538,7 +2538,7 @@ static NTSTATUS pulse_wow64_get_device_period(void *args)
{
struct
{
PTR32 pulse_name;
PTR32 device;
EDataFlow flow;
HRESULT result;
PTR32 def_period;
......@@ -2546,7 +2546,7 @@ static NTSTATUS pulse_wow64_get_device_period(void *args)
} *params32 = args;
struct get_device_period_params params =
{
.pulse_name = ULongToPtr(params32->pulse_name),
.device = ULongToPtr(params32->device),
.flow = params32->flow,
.def_period = ULongToPtr(params32->def_period),
.min_period = ULongToPtr(params32->min_period),
......
......@@ -139,7 +139,7 @@ struct get_mix_format_params
struct get_device_period_params
{
const char *pulse_name;
const char *device;
EDataFlow flow;
HRESULT result;
REFERENCE_TIME *def_period;
......
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