Commit 9213faf9 authored by Davide Beatrici's avatar Davide Beatrici Committed by Alexandre Julliard

winealsa: Drop "alsa_" prefix in unixlib enum, apply it to the functions instead.

parent 876a35fb
......@@ -468,7 +468,7 @@ static UINT midi_init(void)
return NOERROR;
}
NTSTATUS midi_release(void *args)
NTSTATUS alsa_midi_release(void *args)
{
/* stop the notify_wait thread */
notify_post(NULL);
......@@ -1389,7 +1389,7 @@ static DWORD midi_in_reset(WORD dev_id, struct notify_context *notify)
return err;
}
NTSTATUS midi_out_message(void *args)
NTSTATUS alsa_midi_out_message(void *args)
{
struct midi_out_message_params *params = args;
......@@ -1447,7 +1447,7 @@ NTSTATUS midi_out_message(void *args)
return STATUS_SUCCESS;
}
NTSTATUS midi_in_message(void *args)
NTSTATUS alsa_midi_in_message(void *args)
{
struct midi_in_message_params *params = args;
......@@ -1502,7 +1502,7 @@ NTSTATUS midi_in_message(void *args)
return STATUS_SUCCESS;
}
NTSTATUS midi_notify_wait(void *args)
NTSTATUS alsa_midi_notify_wait(void *args)
{
struct midi_notify_wait_params *params = args;
......@@ -1606,7 +1606,7 @@ static UINT wow64_midi_out_unprepare(WORD dev_id, struct midi_hdr32 *hdr, UINT h
return MMSYSERR_NOERROR;
}
NTSTATUS wow64_midi_out_message(void *args)
NTSTATUS alsa_wow64_midi_out_message(void *args)
{
struct
{
......@@ -1677,7 +1677,7 @@ NTSTATUS wow64_midi_out_message(void *args)
return STATUS_SUCCESS;
}
midi_out_message(&params);
alsa_midi_out_message(&params);
switch (params32->msg)
{
......@@ -1730,7 +1730,7 @@ static UINT wow64_midi_in_unprepare(WORD dev_id, struct midi_hdr32 *hdr, UINT hd
return MMSYSERR_NOERROR;
}
NTSTATUS wow64_midi_in_message(void *args)
NTSTATUS alsa_wow64_midi_in_message(void *args)
{
struct
{
......@@ -1802,7 +1802,7 @@ NTSTATUS wow64_midi_in_message(void *args)
return STATUS_SUCCESS;
}
midi_in_message(&params);
alsa_midi_in_message(&params);
switch (params32->msg)
{
......@@ -1837,7 +1837,7 @@ NTSTATUS wow64_midi_in_message(void *args)
return STATUS_SUCCESS;
}
NTSTATUS wow64_midi_notify_wait(void *args)
NTSTATUS alsa_wow64_midi_notify_wait(void *args)
{
struct
{
......@@ -1855,7 +1855,7 @@ NTSTATUS wow64_midi_notify_wait(void *args)
};
notify32->send_notify = FALSE;
midi_notify_wait(&params);
alsa_midi_notify_wait(&params);
if (!*params.quit && notify.send_notify)
{
......
......@@ -746,7 +746,7 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient3 *iface,
dump_fmt(fmt);
params.alsa_name = This->alsa_name;
params.device = This->alsa_name;
params.flow = This->dataflow;
params.share = mode;
params.flags = flags;
......@@ -870,7 +870,7 @@ static HRESULT WINAPI AudioClient_IsFormatSupported(IAudioClient3 *iface,
TRACE("(%p)->(%x, %p, %p)\n", This, mode, fmt, out);
if(fmt) dump_fmt(fmt);
params.alsa_name = This->alsa_name;
params.device = This->alsa_name;
params.flow = This->dataflow;
params.share = mode;
params.fmt_in = fmt;
......@@ -903,7 +903,7 @@ static HRESULT WINAPI AudioClient_GetMixFormat(IAudioClient3 *iface,
return E_POINTER;
*pwfx = NULL;
params.alsa_name = This->alsa_name;
params.device = This->alsa_name;
params.flow = This->dataflow;
params.fmt = CoTaskMemAlloc(sizeof(WAVEFORMATEXTENSIBLE));
if(!params.fmt)
......@@ -2455,7 +2455,7 @@ HRESULT WINAPI AUDDRV_GetPropValue(GUID *guid, const PROPERTYKEY *prop, PROPVARI
return E_NOINTERFACE;
}
params.alsa_name = name;
params.device = name;
params.flow = flow;
params.guid = guid;
params.prop = prop;
......
......@@ -38,7 +38,7 @@ struct get_endpoint_ids_params
struct create_stream_params
{
const char *alsa_name;
const char *device;
EDataFlow flow;
AUDCLNT_SHAREMODE share;
DWORD flags;
......@@ -115,7 +115,7 @@ struct release_capture_buffer_params
struct is_format_supported_params
{
const char *alsa_name;
const char *device;
EDataFlow flow;
AUDCLNT_SHAREMODE share;
const WAVEFORMATEX *fmt_in;
......@@ -125,7 +125,7 @@ struct is_format_supported_params
struct get_mix_format_params
{
const char *alsa_name;
const char *device;
EDataFlow flow;
WAVEFORMATEXTENSIBLE *fmt;
HRESULT result;
......@@ -197,7 +197,7 @@ struct is_started_params
struct get_prop_value_params
{
const char *alsa_name;
const char *device;
EDataFlow flow;
const GUID *guid;
const PROPERTYKEY *prop;
......@@ -248,48 +248,48 @@ struct midi_notify_wait_params
struct notify_context *notify;
};
enum alsa_funcs
enum unix_funcs
{
alsa_get_endpoint_ids,
alsa_create_stream,
alsa_release_stream,
alsa_start,
alsa_stop,
alsa_reset,
alsa_timer_loop,
alsa_get_render_buffer,
alsa_release_render_buffer,
alsa_get_capture_buffer,
alsa_release_capture_buffer,
alsa_is_format_supported,
alsa_get_mix_format,
alsa_get_buffer_size,
alsa_get_latency,
alsa_get_current_padding,
alsa_get_next_packet_size,
alsa_get_frequency,
alsa_get_position,
alsa_set_volumes,
alsa_set_event_handle,
alsa_is_started,
alsa_get_prop_value,
alsa_midi_release,
alsa_midi_out_message,
alsa_midi_in_message,
alsa_midi_notify_wait,
get_endpoint_ids,
create_stream,
release_stream,
start,
stop,
reset,
timer_loop,
get_render_buffer,
release_render_buffer,
get_capture_buffer,
release_capture_buffer,
is_format_supported,
get_mix_format,
get_buffer_size,
get_latency,
get_current_padding,
get_next_packet_size,
get_frequency,
get_position,
set_volumes,
set_event_handle,
is_started,
get_prop_value,
midi_release,
midi_out_message,
midi_in_message,
midi_notify_wait,
};
NTSTATUS midi_release(void *args) DECLSPEC_HIDDEN;
NTSTATUS midi_out_message(void *args) DECLSPEC_HIDDEN;
NTSTATUS midi_in_message(void *args) DECLSPEC_HIDDEN;
NTSTATUS midi_notify_wait(void *args) DECLSPEC_HIDDEN;
NTSTATUS alsa_midi_release(void *args) DECLSPEC_HIDDEN;
NTSTATUS alsa_midi_out_message(void *args) DECLSPEC_HIDDEN;
NTSTATUS alsa_midi_in_message(void *args) DECLSPEC_HIDDEN;
NTSTATUS alsa_midi_notify_wait(void *args) DECLSPEC_HIDDEN;
#ifdef _WIN64
NTSTATUS wow64_midi_out_message(void *args) DECLSPEC_HIDDEN;
NTSTATUS wow64_midi_in_message(void *args) DECLSPEC_HIDDEN;
NTSTATUS wow64_midi_notify_wait(void *args) DECLSPEC_HIDDEN;
NTSTATUS alsa_wow64_midi_out_message(void *args) DECLSPEC_HIDDEN;
NTSTATUS alsa_wow64_midi_in_message(void *args) DECLSPEC_HIDDEN;
NTSTATUS alsa_wow64_midi_notify_wait(void *args) DECLSPEC_HIDDEN;
#endif
extern unixlib_handle_t alsa_handle;
#define ALSA_CALL(func, params) __wine_unix_call(alsa_handle, alsa_ ## func, params)
#define ALSA_CALL(func, params) __wine_unix_call(alsa_handle, func, params)
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