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