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