Commit 005123ba authored by Davide Beatrici's avatar Davide Beatrici Committed by Alexandre Julliard

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

parent d270dca8
......@@ -1142,7 +1142,7 @@ static HRESULT WINAPI AudioClient_GetMixFormat(IAudioClient3 *iface,
return E_POINTER;
*pwfx = NULL;
params.pulse_name = This->pulse_name;
params.device = This->pulse_name;
params.flow = This->dataflow;
params.fmt = CoTaskMemAlloc(sizeof(WAVEFORMATEXTENSIBLE));
if (!params.fmt)
......
......@@ -2055,7 +2055,7 @@ static NTSTATUS pulse_get_mix_format(void *args)
PhysDevice *dev;
LIST_FOR_EACH_ENTRY(dev, list, PhysDevice, entry) {
if (strcmp(params->pulse_name, dev->pulse_name))
if (strcmp(params->device, dev->pulse_name))
continue;
*params->fmt = dev->fmt;
......@@ -2518,14 +2518,14 @@ static NTSTATUS pulse_wow64_get_mix_format(void *args)
{
struct
{
PTR32 pulse_name;
PTR32 device;
EDataFlow flow;
PTR32 fmt;
HRESULT result;
} *params32 = args;
struct get_mix_format_params params =
{
.pulse_name = ULongToPtr(params32->pulse_name),
.device = ULongToPtr(params32->device),
.flow = params32->flow,
.fmt = ULongToPtr(params32->fmt),
};
......
......@@ -131,7 +131,7 @@ struct release_capture_buffer_params
struct get_mix_format_params
{
const char *pulse_name;
const char *device;
EDataFlow flow;
WAVEFORMATEXTENSIBLE *fmt;
HRESULT result;
......
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