mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 21:35:43 +00:00
winecoreaudio: Adapt "create_stream_params" struct to mmdevapi's.
This commit is contained in:
parent
bc404b6c9c
commit
de9da9bcdb
|
@ -1707,23 +1707,29 @@ static NTSTATUS unix_wow64_create_stream(void *args)
|
|||
{
|
||||
struct
|
||||
{
|
||||
PTR32 name;
|
||||
PTR32 device;
|
||||
EDataFlow flow;
|
||||
AUDCLNT_SHAREMODE share;
|
||||
DWORD flags;
|
||||
REFERENCE_TIME duration;
|
||||
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,
|
||||
.flags = params32->flags,
|
||||
.duration = params32->duration,
|
||||
.period = params32->period,
|
||||
.fmt = ULongToPtr(params32->fmt),
|
||||
.channel_count = ULongToPtr(params32->channel_count),
|
||||
.stream = ULongToPtr(params32->stream)
|
||||
};
|
||||
unix_create_stream(¶ms);
|
||||
|
|
|
@ -734,12 +734,15 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient3 *iface,
|
|||
return AUDCLNT_E_ALREADY_INITIALIZED;
|
||||
}
|
||||
|
||||
params.name = NULL;
|
||||
params.device = This->device_name;
|
||||
params.flow = This->dataflow;
|
||||
params.share = mode;
|
||||
params.flags = flags;
|
||||
params.duration = duration;
|
||||
params.period = period;
|
||||
params.fmt = fmt;
|
||||
params.channel_count = NULL;
|
||||
params.stream = &stream;
|
||||
|
||||
UNIX_CALL(create_stream, ¶ms);
|
||||
|
|
|
@ -39,13 +39,16 @@ struct get_endpoint_ids_params
|
|||
|
||||
struct create_stream_params
|
||||
{
|
||||
const char *name;
|
||||
const char *device;
|
||||
EDataFlow flow;
|
||||
AUDCLNT_SHAREMODE share;
|
||||
DWORD flags;
|
||||
REFERENCE_TIME duration;
|
||||
REFERENCE_TIME period;
|
||||
const WAVEFORMATEX *fmt;
|
||||
HRESULT result;
|
||||
UINT32 *channel_count;
|
||||
stream_handle *stream;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue