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

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

parent 03af71d4
...@@ -712,6 +712,7 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient3 *iface, ...@@ -712,6 +712,7 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient3 *iface,
return AUDCLNT_E_ALREADY_INITIALIZED; return AUDCLNT_E_ALREADY_INITIALIZED;
} }
params.name = NULL;
params.device = This->devnode; params.device = This->devnode;
params.flow = This->dataflow; params.flow = This->dataflow;
params.share = mode; params.share = mode;
...@@ -719,6 +720,7 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient3 *iface, ...@@ -719,6 +720,7 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient3 *iface,
params.duration = duration; params.duration = duration;
params.period = period; params.period = period;
params.fmt = fmt; params.fmt = fmt;
params.channel_count = NULL;
params.stream = &stream; params.stream = &stream;
OSS_CALL(create_stream, &params); OSS_CALL(create_stream, &params);
......
...@@ -1691,6 +1691,7 @@ static NTSTATUS oss_wow64_create_stream(void *args) ...@@ -1691,6 +1691,7 @@ static NTSTATUS oss_wow64_create_stream(void *args)
{ {
struct struct
{ {
PTR32 name;
PTR32 device; PTR32 device;
EDataFlow flow; EDataFlow flow;
AUDCLNT_SHAREMODE share; AUDCLNT_SHAREMODE share;
...@@ -1699,10 +1700,12 @@ static NTSTATUS oss_wow64_create_stream(void *args) ...@@ -1699,10 +1700,12 @@ static NTSTATUS oss_wow64_create_stream(void *args)
REFERENCE_TIME period; REFERENCE_TIME period;
PTR32 fmt; PTR32 fmt;
HRESULT result; HRESULT result;
PTR32 channel_count;
PTR32 stream; PTR32 stream;
} *params32 = args; } *params32 = args;
struct create_stream_params params = struct create_stream_params params =
{ {
.name = ULongToPtr(params32->name),
.device = ULongToPtr(params32->device), .device = ULongToPtr(params32->device),
.flow = params32->flow, .flow = params32->flow,
.share = params32->share, .share = params32->share,
...@@ -1710,6 +1713,7 @@ static NTSTATUS oss_wow64_create_stream(void *args) ...@@ -1710,6 +1713,7 @@ static NTSTATUS oss_wow64_create_stream(void *args)
.duration = params32->duration, .duration = params32->duration,
.period = params32->period, .period = params32->period,
.fmt = ULongToPtr(params32->fmt), .fmt = ULongToPtr(params32->fmt),
.channel_count = ULongToPtr(params32->channel_count),
.stream = ULongToPtr(params32->stream) .stream = ULongToPtr(params32->stream)
}; };
oss_create_stream(&params); oss_create_stream(&params);
......
...@@ -53,6 +53,7 @@ struct get_endpoint_ids_params ...@@ -53,6 +53,7 @@ struct get_endpoint_ids_params
struct create_stream_params struct create_stream_params
{ {
const char *name;
const char *device; const char *device;
EDataFlow flow; EDataFlow flow;
AUDCLNT_SHAREMODE share; AUDCLNT_SHAREMODE share;
...@@ -61,6 +62,7 @@ struct create_stream_params ...@@ -61,6 +62,7 @@ struct create_stream_params
REFERENCE_TIME period; REFERENCE_TIME period;
const WAVEFORMATEX *fmt; const WAVEFORMATEX *fmt;
HRESULT result; HRESULT result;
UINT32 *channel_count;
stream_handle *stream; stream_handle *stream;
}; };
......
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