Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9213faf9
Commit
9213faf9
authored
Aug 10, 2022
by
Davide Beatrici
Committed by
Alexandre Julliard
Aug 16, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa: Drop "alsa_" prefix in unixlib enum, apply it to the functions instead.
parent
876a35fb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
54 deletions
+54
-54
alsa.c
dlls/winealsa.drv/alsa.c
+0
-0
alsamidi.c
dlls/winealsa.drv/alsamidi.c
+10
-10
mmdevdrv.c
dlls/winealsa.drv/mmdevdrv.c
+4
-4
unixlib.h
dlls/winealsa.drv/unixlib.h
+40
-40
No files found.
dlls/winealsa.drv/alsa.c
View file @
9213faf9
This diff is collapsed.
Click to expand it.
dlls/winealsa.drv/alsamidi.c
View file @
9213faf9
...
...
@@ -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
)
{
...
...
dlls/winealsa.drv/mmdevdrv.c
View file @
9213faf9
...
...
@@ -746,7 +746,7 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient3 *iface,
dump_fmt
(
fmt
);
params
.
alsa_nam
e
=
This
->
alsa_name
;
params
.
devic
e
=
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_nam
e
=
This
->
alsa_name
;
params
.
devic
e
=
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_nam
e
=
This
->
alsa_name
;
params
.
devic
e
=
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_nam
e
=
name
;
params
.
devic
e
=
name
;
params
.
flow
=
flow
;
params
.
guid
=
guid
;
params
.
prop
=
prop
;
...
...
dlls/winealsa.drv/unixlib.h
View file @
9213faf9
...
...
@@ -38,7 +38,7 @@ struct get_endpoint_ids_params
struct
create_stream_params
{
const
char
*
alsa_nam
e
;
const
char
*
devic
e
;
EDataFlow
flow
;
AUDCLNT_SHAREMODE
share
;
DWORD
flags
;
...
...
@@ -115,7 +115,7 @@ struct release_capture_buffer_params
struct
is_format_supported_params
{
const
char
*
alsa_nam
e
;
const
char
*
devic
e
;
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_nam
e
;
const
char
*
devic
e
;
EDataFlow
flow
;
WAVEFORMATEXTENSIBLE
*
fmt
;
HRESULT
result
;
...
...
@@ -197,7 +197,7 @@ struct is_started_params
struct
get_prop_value_params
{
const
char
*
alsa_nam
e
;
const
char
*
devic
e
;
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)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment