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
5e4466a3
Commit
5e4466a3
authored
Sep 07, 2022
by
Davide Beatrici
Committed by
Alexandre Julliard
Sep 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineoss: Drop "oss_" prefix in unixlib enum, apply it to the functions instead.
parent
d2c9a9f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
158 additions
and
158 deletions
+158
-158
oss.c
dlls/wineoss.drv/oss.c
+112
-112
ossmidi.c
dlls/wineoss.drv/ossmidi.c
+10
-10
unixlib.h
dlls/wineoss.drv/unixlib.h
+36
-36
No files found.
dlls/wineoss.drv/oss.c
View file @
5e4466a3
...
...
@@ -116,7 +116,7 @@ static struct oss_stream *handle_get_stream(stream_handle h)
return
(
struct
oss_stream
*
)(
UINT_PTR
)
h
;
}
static
NTSTATUS
test_connect
(
void
*
args
)
static
NTSTATUS
oss_
test_connect
(
void
*
args
)
{
struct
test_connect_params
*
params
=
args
;
int
mixer_fd
;
...
...
@@ -213,7 +213,7 @@ static void get_default_device(EDataFlow flow, char device[OSS_DEVNODE_SIZE])
return
;
}
static
NTSTATUS
get_endpoint_ids
(
void
*
args
)
static
NTSTATUS
oss_
get_endpoint_ids
(
void
*
args
)
{
struct
get_endpoint_ids_params
*
params
=
args
;
oss_sysinfo
sysinfo
;
...
...
@@ -544,7 +544,7 @@ static ULONG_PTR zero_bits(void)
#endif
}
static
NTSTATUS
create_stream
(
void
*
args
)
static
NTSTATUS
oss_
create_stream
(
void
*
args
)
{
struct
create_stream_params
*
params
=
args
;
WAVEFORMATEXTENSIBLE
*
fmtex
;
...
...
@@ -633,7 +633,7 @@ exit:
return
STATUS_SUCCESS
;
}
static
NTSTATUS
release_stream
(
void
*
args
)
static
NTSTATUS
oss_
release_stream
(
void
*
args
)
{
struct
release_stream_params
*
params
=
args
;
struct
oss_stream
*
stream
=
handle_get_stream
(
params
->
stream
);
...
...
@@ -662,7 +662,7 @@ static NTSTATUS release_stream(void *args)
return
STATUS_SUCCESS
;
}
static
NTSTATUS
start
(
void
*
args
)
static
NTSTATUS
oss_
start
(
void
*
args
)
{
struct
start_params
*
params
=
args
;
struct
oss_stream
*
stream
=
handle_get_stream
(
params
->
stream
);
...
...
@@ -680,7 +680,7 @@ static NTSTATUS start(void *args)
return
oss_unlock_result
(
stream
,
&
params
->
result
,
S_OK
);
}
static
NTSTATUS
stop
(
void
*
args
)
static
NTSTATUS
oss_
stop
(
void
*
args
)
{
struct
stop_params
*
params
=
args
;
struct
oss_stream
*
stream
=
handle_get_stream
(
params
->
stream
);
...
...
@@ -696,7 +696,7 @@ static NTSTATUS stop(void *args)
return
oss_unlock_result
(
stream
,
&
params
->
result
,
S_OK
);
}
static
NTSTATUS
reset
(
void
*
args
)
static
NTSTATUS
oss_
reset
(
void
*
args
)
{
struct
reset_params
*
params
=
args
;
struct
oss_stream
*
stream
=
handle_get_stream
(
params
->
stream
);
...
...
@@ -869,7 +869,7 @@ static void oss_read_data(struct oss_stream *stream)
}
}
static
NTSTATUS
timer_loop
(
void
*
args
)
static
NTSTATUS
oss_
timer_loop
(
void
*
args
)
{
struct
timer_loop_params
*
params
=
args
;
struct
oss_stream
*
stream
=
handle_get_stream
(
params
->
stream
);
...
...
@@ -911,7 +911,7 @@ static NTSTATUS timer_loop(void *args)
return
STATUS_SUCCESS
;
}
static
NTSTATUS
get_render_buffer
(
void
*
args
)
static
NTSTATUS
oss_
get_render_buffer
(
void
*
args
)
{
struct
get_render_buffer_params
*
params
=
args
;
struct
oss_stream
*
stream
=
handle_get_stream
(
params
->
stream
);
...
...
@@ -977,7 +977,7 @@ static void oss_wrap_buffer(struct oss_stream *stream, BYTE *buffer, UINT32 writ
}
}
static
NTSTATUS
release_render_buffer
(
void
*
args
)
static
NTSTATUS
oss_
release_render_buffer
(
void
*
args
)
{
struct
release_render_buffer_params
*
params
=
args
;
struct
oss_stream
*
stream
=
handle_get_stream
(
params
->
stream
);
...
...
@@ -1017,7 +1017,7 @@ static NTSTATUS release_render_buffer(void *args)
return
oss_unlock_result
(
stream
,
&
params
->
result
,
S_OK
);
}
static
NTSTATUS
get_capture_buffer
(
void
*
args
)
static
NTSTATUS
oss_
get_capture_buffer
(
void
*
args
)
{
struct
get_capture_buffer_params
*
params
=
args
;
struct
oss_stream
*
stream
=
handle_get_stream
(
params
->
stream
);
...
...
@@ -1083,7 +1083,7 @@ static NTSTATUS get_capture_buffer(void *args)
return
oss_unlock_result
(
stream
,
&
params
->
result
,
*
frames
?
S_OK
:
AUDCLNT_S_BUFFER_EMPTY
);
}
static
NTSTATUS
release_capture_buffer
(
void
*
args
)
static
NTSTATUS
oss_
release_capture_buffer
(
void
*
args
)
{
struct
release_capture_buffer_params
*
params
=
args
;
struct
oss_stream
*
stream
=
handle_get_stream
(
params
->
stream
);
...
...
@@ -1111,7 +1111,7 @@ static NTSTATUS release_capture_buffer(void *args)
return
oss_unlock_result
(
stream
,
&
params
->
result
,
S_OK
);
}
static
NTSTATUS
is_format_supported
(
void
*
args
)
static
NTSTATUS
oss_
is_format_supported
(
void
*
args
)
{
struct
is_format_supported_params
*
params
=
args
;
int
fd
;
...
...
@@ -1140,7 +1140,7 @@ static NTSTATUS is_format_supported(void *args)
return
STATUS_SUCCESS
;
}
static
NTSTATUS
get_mix_format
(
void
*
args
)
static
NTSTATUS
oss_
get_mix_format
(
void
*
args
)
{
struct
get_mix_format_params
*
params
=
args
;
WAVEFORMATEXTENSIBLE
*
fmt
=
params
->
fmt
;
...
...
@@ -1240,7 +1240,7 @@ static NTSTATUS get_mix_format(void *args)
return
STATUS_SUCCESS
;
}
static
NTSTATUS
get_buffer_size
(
void
*
args
)
static
NTSTATUS
oss_
get_buffer_size
(
void
*
args
)
{
struct
get_buffer_size_params
*
params
=
args
;
struct
oss_stream
*
stream
=
handle_get_stream
(
params
->
stream
);
...
...
@@ -1252,7 +1252,7 @@ static NTSTATUS get_buffer_size(void *args)
return
oss_unlock_result
(
stream
,
&
params
->
result
,
S_OK
);
}
static
NTSTATUS
get_latency
(
void
*
args
)
static
NTSTATUS
oss_
get_latency
(
void
*
args
)
{
struct
get_latency_params
*
params
=
args
;
struct
oss_stream
*
stream
=
handle_get_stream
(
params
->
stream
);
...
...
@@ -1266,7 +1266,7 @@ static NTSTATUS get_latency(void *args)
return
oss_unlock_result
(
stream
,
&
params
->
result
,
S_OK
);
}
static
NTSTATUS
get_current_padding
(
void
*
args
)
static
NTSTATUS
oss_
get_current_padding
(
void
*
args
)
{
struct
get_current_padding_params
*
params
=
args
;
struct
oss_stream
*
stream
=
handle_get_stream
(
params
->
stream
);
...
...
@@ -1278,7 +1278,7 @@ static NTSTATUS get_current_padding(void *args)
return
oss_unlock_result
(
stream
,
&
params
->
result
,
S_OK
);
}
static
NTSTATUS
get_next_packet_size
(
void
*
args
)
static
NTSTATUS
oss_
get_next_packet_size
(
void
*
args
)
{
struct
get_next_packet_size_params
*
params
=
args
;
struct
oss_stream
*
stream
=
handle_get_stream
(
params
->
stream
);
...
...
@@ -1291,7 +1291,7 @@ static NTSTATUS get_next_packet_size(void *args)
return
oss_unlock_result
(
stream
,
&
params
->
result
,
S_OK
);
}
static
NTSTATUS
get_frequency
(
void
*
args
)
static
NTSTATUS
oss_
get_frequency
(
void
*
args
)
{
struct
get_frequency_params
*
params
=
args
;
struct
oss_stream
*
stream
=
handle_get_stream
(
params
->
stream
);
...
...
@@ -1307,7 +1307,7 @@ static NTSTATUS get_frequency(void *args)
return
oss_unlock_result
(
stream
,
&
params
->
result
,
S_OK
);
}
static
NTSTATUS
get_position
(
void
*
args
)
static
NTSTATUS
oss_
get_position
(
void
*
args
)
{
struct
get_position_params
*
params
=
args
;
struct
oss_stream
*
stream
=
handle_get_stream
(
params
->
stream
);
...
...
@@ -1351,7 +1351,7 @@ static NTSTATUS get_position(void *args)
return
oss_unlock_result
(
stream
,
&
params
->
result
,
S_OK
);
}
static
NTSTATUS
set_volumes
(
void
*
args
)
static
NTSTATUS
oss_
set_volumes
(
void
*
args
)
{
struct
set_volumes_params
*
params
=
args
;
struct
oss_stream
*
stream
=
handle_get_stream
(
params
->
stream
);
...
...
@@ -1363,7 +1363,7 @@ static NTSTATUS set_volumes(void *args)
return
STATUS_SUCCESS
;
}
static
NTSTATUS
set_event_handle
(
void
*
args
)
static
NTSTATUS
oss_
set_event_handle
(
void
*
args
)
{
struct
set_event_handle_params
*
params
=
args
;
struct
oss_stream
*
stream
=
handle_get_stream
(
params
->
stream
);
...
...
@@ -1383,7 +1383,7 @@ static NTSTATUS set_event_handle(void *args)
return
oss_unlock_result
(
stream
,
&
params
->
result
,
S_OK
);
}
static
NTSTATUS
is_started
(
void
*
args
)
static
NTSTATUS
oss_
is_started
(
void
*
args
)
{
struct
is_started_params
*
params
=
args
;
struct
oss_stream
*
stream
=
handle_get_stream
(
params
->
stream
);
...
...
@@ -1571,7 +1571,7 @@ static UINT aux_set_volume(WORD dev_id, UINT vol)
return
MMSYSERR_NOERROR
;
}
static
NTSTATUS
aux_message
(
void
*
args
)
static
NTSTATUS
oss_
aux_message
(
void
*
args
)
{
struct
aux_message_params
*
params
=
args
;
...
...
@@ -1612,41 +1612,41 @@ static NTSTATUS aux_message(void *args)
unixlib_entry_t
__wine_unix_call_funcs
[]
=
{
test_connect
,
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
,
midi_release
,
midi_out_message
,
midi_in_message
,
midi_notify_wait
,
aux_message
,
oss_
test_connect
,
oss_
get_endpoint_ids
,
oss_
create_stream
,
oss_
release_stream
,
oss_
start
,
oss_
stop
,
oss_
reset
,
oss_
timer_loop
,
oss_
get_render_buffer
,
oss_
release_render_buffer
,
oss_
get_capture_buffer
,
oss_
release_capture_buffer
,
oss_
is_format_supported
,
oss_
get_mix_format
,
oss_
get_buffer_size
,
oss_
get_latency
,
oss_
get_current_padding
,
oss_
get_next_packet_size
,
oss_
get_frequency
,
oss_
get_position
,
oss_
set_volumes
,
oss_
set_event_handle
,
oss_
is_started
,
oss_
midi_release
,
oss_
midi_out_message
,
oss_
midi_in_message
,
oss_
midi_notify_wait
,
oss_
aux_message
,
};
#ifdef _WIN64
typedef
UINT
PTR32
;
static
NTSTATUS
wow64_get_endpoint_ids
(
void
*
args
)
static
NTSTATUS
oss_
wow64_get_endpoint_ids
(
void
*
args
)
{
struct
{
...
...
@@ -1663,7 +1663,7 @@ static NTSTATUS wow64_get_endpoint_ids(void *args)
.
endpoints
=
ULongToPtr
(
params32
->
endpoints
),
.
size
=
params32
->
size
};
get_endpoint_ids
(
&
params
);
oss_
get_endpoint_ids
(
&
params
);
params32
->
size
=
params
.
size
;
params32
->
result
=
params
.
result
;
params32
->
num
=
params
.
num
;
...
...
@@ -1671,7 +1671,7 @@ static NTSTATUS wow64_get_endpoint_ids(void *args)
return
STATUS_SUCCESS
;
}
static
NTSTATUS
wow64_create_stream
(
void
*
args
)
static
NTSTATUS
oss_
wow64_create_stream
(
void
*
args
)
{
struct
{
...
...
@@ -1696,12 +1696,12 @@ static NTSTATUS wow64_create_stream(void *args)
.
fmt
=
ULongToPtr
(
params32
->
fmt
),
.
stream
=
ULongToPtr
(
params32
->
stream
)
};
create_stream
(
&
params
);
oss_
create_stream
(
&
params
);
params32
->
result
=
params
.
result
;
return
STATUS_SUCCESS
;
}
static
NTSTATUS
wow64_release_stream
(
void
*
args
)
static
NTSTATUS
oss_
wow64_release_stream
(
void
*
args
)
{
struct
{
...
...
@@ -1714,12 +1714,12 @@ static NTSTATUS wow64_release_stream(void *args)
.
stream
=
params32
->
stream
,
.
timer_thread
=
ULongToHandle
(
params32
->
timer_thread
)
};
release_stream
(
&
params
);
oss_
release_stream
(
&
params
);
params32
->
result
=
params
.
result
;
return
STATUS_SUCCESS
;
}
static
NTSTATUS
wow64_get_render_buffer
(
void
*
args
)
static
NTSTATUS
oss_
wow64_get_render_buffer
(
void
*
args
)
{
struct
{
...
...
@@ -1735,13 +1735,13 @@ static NTSTATUS wow64_get_render_buffer(void *args)
.
frames
=
params32
->
frames
,
.
data
=
&
data
};
get_render_buffer
(
&
params
);
oss_
get_render_buffer
(
&
params
);
params32
->
result
=
params
.
result
;
*
(
unsigned
int
*
)
ULongToPtr
(
params32
->
data
)
=
PtrToUlong
(
data
);
return
STATUS_SUCCESS
;
}
static
NTSTATUS
wow64_get_capture_buffer
(
void
*
args
)
static
NTSTATUS
oss_
wow64_get_capture_buffer
(
void
*
args
)
{
struct
{
...
...
@@ -1763,13 +1763,13 @@ static NTSTATUS wow64_get_capture_buffer(void *args)
.
devpos
=
ULongToPtr
(
params32
->
devpos
),
.
qpcpos
=
ULongToPtr
(
params32
->
qpcpos
)
};
get_capture_buffer
(
&
params
);
oss_
get_capture_buffer
(
&
params
);
params32
->
result
=
params
.
result
;
*
(
unsigned
int
*
)
ULongToPtr
(
params32
->
data
)
=
PtrToUlong
(
data
);
return
STATUS_SUCCESS
;
};
static
NTSTATUS
wow64_is_format_supported
(
void
*
args
)
static
NTSTATUS
oss_
wow64_is_format_supported
(
void
*
args
)
{
struct
{
...
...
@@ -1788,12 +1788,12 @@ static NTSTATUS wow64_is_format_supported(void *args)
.
fmt_in
=
ULongToPtr
(
params32
->
fmt_in
),
.
fmt_out
=
ULongToPtr
(
params32
->
fmt_out
)
};
is_format_supported
(
&
params
);
oss_
is_format_supported
(
&
params
);
params32
->
result
=
params
.
result
;
return
STATUS_SUCCESS
;
}
static
NTSTATUS
wow64_get_mix_format
(
void
*
args
)
static
NTSTATUS
oss_
wow64_get_mix_format
(
void
*
args
)
{
struct
{
...
...
@@ -1808,12 +1808,12 @@ static NTSTATUS wow64_get_mix_format(void *args)
.
flow
=
params32
->
flow
,
.
fmt
=
ULongToPtr
(
params32
->
fmt
)
};
get_mix_format
(
&
params
);
oss_
get_mix_format
(
&
params
);
params32
->
result
=
params
.
result
;
return
STATUS_SUCCESS
;
}
static
NTSTATUS
wow64_get_buffer_size
(
void
*
args
)
static
NTSTATUS
oss_
wow64_get_buffer_size
(
void
*
args
)
{
struct
{
...
...
@@ -1826,12 +1826,12 @@ static NTSTATUS wow64_get_buffer_size(void *args)
.
stream
=
params32
->
stream
,
.
size
=
ULongToPtr
(
params32
->
size
)
};
get_buffer_size
(
&
params
);
oss_
get_buffer_size
(
&
params
);
params32
->
result
=
params
.
result
;
return
STATUS_SUCCESS
;
}
static
NTSTATUS
wow64_get_latency
(
void
*
args
)
static
NTSTATUS
oss_
wow64_get_latency
(
void
*
args
)
{
struct
{
...
...
@@ -1844,12 +1844,12 @@ static NTSTATUS wow64_get_latency(void *args)
.
stream
=
params32
->
stream
,
.
latency
=
ULongToPtr
(
params32
->
latency
)
};
get_latency
(
&
params
);
oss_
get_latency
(
&
params
);
params32
->
result
=
params
.
result
;
return
STATUS_SUCCESS
;
}
static
NTSTATUS
wow64_get_current_padding
(
void
*
args
)
static
NTSTATUS
oss_
wow64_get_current_padding
(
void
*
args
)
{
struct
{
...
...
@@ -1862,12 +1862,12 @@ static NTSTATUS wow64_get_current_padding(void *args)
.
stream
=
params32
->
stream
,
.
padding
=
ULongToPtr
(
params32
->
padding
)
};
get_current_padding
(
&
params
);
oss_
get_current_padding
(
&
params
);
params32
->
result
=
params
.
result
;
return
STATUS_SUCCESS
;
}
static
NTSTATUS
wow64_get_next_packet_size
(
void
*
args
)
static
NTSTATUS
oss_
wow64_get_next_packet_size
(
void
*
args
)
{
struct
{
...
...
@@ -1880,12 +1880,12 @@ static NTSTATUS wow64_get_next_packet_size(void *args)
.
stream
=
params32
->
stream
,
.
frames
=
ULongToPtr
(
params32
->
frames
)
};
get_next_packet_size
(
&
params
);
oss_
get_next_packet_size
(
&
params
);
params32
->
result
=
params
.
result
;
return
STATUS_SUCCESS
;
}
static
NTSTATUS
wow64_get_frequency
(
void
*
args
)
static
NTSTATUS
oss_
wow64_get_frequency
(
void
*
args
)
{
struct
{
...
...
@@ -1898,12 +1898,12 @@ static NTSTATUS wow64_get_frequency(void *args)
.
stream
=
params32
->
stream
,
.
frequency
=
ULongToPtr
(
params32
->
frequency
)
};
get_frequency
(
&
params
);
oss_
get_frequency
(
&
params
);
params32
->
result
=
params
.
result
;
return
STATUS_SUCCESS
;
}
static
NTSTATUS
wow64_get_position
(
void
*
args
)
static
NTSTATUS
oss_
wow64_get_position
(
void
*
args
)
{
struct
{
...
...
@@ -1918,12 +1918,12 @@ static NTSTATUS wow64_get_position(void *args)
.
position
=
ULongToPtr
(
params32
->
position
),
.
qpctime
=
ULongToPtr
(
params32
->
qpctime
)
};
get_position
(
&
params
);
oss_
get_position
(
&
params
);
params32
->
result
=
params
.
result
;
return
STATUS_SUCCESS
;
}
static
NTSTATUS
wow64_set_volumes
(
void
*
args
)
static
NTSTATUS
oss_
wow64_set_volumes
(
void
*
args
)
{
struct
{
...
...
@@ -1939,10 +1939,10 @@ static NTSTATUS wow64_set_volumes(void *args)
.
volumes
=
ULongToPtr
(
params32
->
volumes
),
.
session_volumes
=
ULongToPtr
(
params32
->
session_volumes
)
};
return
set_volumes
(
&
params
);
return
oss_
set_volumes
(
&
params
);
}
static
NTSTATUS
wow64_set_event_handle
(
void
*
args
)
static
NTSTATUS
oss_
wow64_set_event_handle
(
void
*
args
)
{
struct
{
...
...
@@ -1956,12 +1956,12 @@ static NTSTATUS wow64_set_event_handle(void *args)
.
event
=
ULongToHandle
(
params32
->
event
)
};
set_event_handle
(
&
params
);
oss_
set_event_handle
(
&
params
);
params32
->
result
=
params
.
result
;
return
STATUS_SUCCESS
;
}
static
NTSTATUS
wow64_aux_message
(
void
*
args
)
static
NTSTATUS
oss_
wow64_aux_message
(
void
*
args
)
{
struct
{
...
...
@@ -1981,39 +1981,39 @@ static NTSTATUS wow64_aux_message(void *args)
.
param_2
=
params32
->
param_2
,
.
err
=
ULongToPtr
(
params32
->
err
),
};
return
aux_message
(
&
params
);
return
oss_
aux_message
(
&
params
);
}
unixlib_entry_t
__wine_unix_call_wow64_funcs
[]
=
{
test_connect
,
wow64_get_endpoint_ids
,
wow64_create_stream
,
wow64_release_stream
,
start
,
stop
,
reset
,
timer_loop
,
wow64_get_render_buffer
,
release_render_buffer
,
wow64_get_capture_buffer
,
release_capture_buffer
,
wow64_is_format_supported
,
wow64_get_mix_format
,
wow64_get_buffer_size
,
wow64_get_latency
,
wow64_get_current_padding
,
wow64_get_next_packet_size
,
wow64_get_frequency
,
wow64_get_position
,
wow64_set_volumes
,
wow64_set_event_handle
,
is_started
,
midi_release
,
wow64_midi_out_message
,
wow64_midi_in_message
,
wow64_midi_notify_wait
,
wow64_aux_message
,
oss_
test_connect
,
oss_
wow64_get_endpoint_ids
,
oss_
wow64_create_stream
,
oss_
wow64_release_stream
,
oss_
start
,
oss_
stop
,
oss_
reset
,
oss_
timer_loop
,
oss_
wow64_get_render_buffer
,
oss_
release_render_buffer
,
oss_
wow64_get_capture_buffer
,
oss_
release_capture_buffer
,
oss_
wow64_is_format_supported
,
oss_
wow64_get_mix_format
,
oss_
wow64_get_buffer_size
,
oss_
wow64_get_latency
,
oss_
wow64_get_current_padding
,
oss_
wow64_get_next_packet_size
,
oss_
wow64_get_frequency
,
oss_
wow64_get_position
,
oss_
wow64_set_volumes
,
oss_
wow64_set_event_handle
,
oss_
is_started
,
oss_
midi_release
,
oss_
wow64_midi_out_message
,
oss_
wow64_midi_in_message
,
oss_
wow64_midi_notify_wait
,
oss_
wow64_aux_message
,
};
#endif
/* _WIN64 */
dlls/wineoss.drv/ossmidi.c
View file @
5e4466a3
...
...
@@ -522,7 +522,7 @@ static UINT midi_exit(void)
return
0
;
}
NTSTATUS
midi_release
(
void
*
args
)
NTSTATUS
oss_
midi_release
(
void
*
args
)
{
/* stop the notify_wait thread */
notify_post
(
NULL
);
...
...
@@ -1685,7 +1685,7 @@ static UINT midi_in_reset(WORD dev_id, struct notify_context *notify)
return
err
;
}
NTSTATUS
midi_out_message
(
void
*
args
)
NTSTATUS
oss_
midi_out_message
(
void
*
args
)
{
struct
midi_out_message_params
*
params
=
args
;
...
...
@@ -1745,7 +1745,7 @@ NTSTATUS midi_out_message(void *args)
return
STATUS_SUCCESS
;
}
NTSTATUS
midi_in_message
(
void
*
args
)
NTSTATUS
oss_
midi_in_message
(
void
*
args
)
{
struct
midi_in_message_params
*
params
=
args
;
...
...
@@ -1802,7 +1802,7 @@ NTSTATUS midi_in_message(void *args)
return
STATUS_SUCCESS
;
}
NTSTATUS
midi_notify_wait
(
void
*
args
)
NTSTATUS
oss_
midi_notify_wait
(
void
*
args
)
{
struct
midi_notify_wait_params
*
params
=
args
;
...
...
@@ -1906,7 +1906,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
oss_
wow64_midi_out_message
(
void
*
args
)
{
struct
{
...
...
@@ -1977,7 +1977,7 @@ NTSTATUS wow64_midi_out_message(void *args)
return
STATUS_SUCCESS
;
}
midi_out_message
(
&
params
);
oss_
midi_out_message
(
&
params
);
switch
(
params32
->
msg
)
{
...
...
@@ -2030,7 +2030,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
oss_
wow64_midi_in_message
(
void
*
args
)
{
struct
{
...
...
@@ -2102,7 +2102,7 @@ NTSTATUS wow64_midi_in_message(void *args)
return
STATUS_SUCCESS
;
}
midi_in_message
(
&
params
);
oss_
midi_in_message
(
&
params
);
switch
(
params32
->
msg
)
{
...
...
@@ -2137,7 +2137,7 @@ NTSTATUS wow64_midi_in_message(void *args)
return
STATUS_SUCCESS
;
}
NTSTATUS
wow64_midi_notify_wait
(
void
*
args
)
NTSTATUS
oss_
wow64_midi_notify_wait
(
void
*
args
)
{
struct
{
...
...
@@ -2155,7 +2155,7 @@ NTSTATUS wow64_midi_notify_wait(void *args)
};
notify32
->
send_notify
=
FALSE
;
midi_notify_wait
(
&
params
);
oss_
midi_notify_wait
(
&
params
);
if
(
!*
params
.
quit
&&
notify
.
send_notify
)
{
...
...
dlls/wineoss.drv/unixlib.h
View file @
5e4466a3
...
...
@@ -262,47 +262,47 @@ struct aux_message_params
enum
oss_funcs
{
oss_
test_connect
,
oss_
get_endpoint_ids
,
oss_
create_stream
,
oss_
release_stream
,
oss_
start
,
oss_
stop
,
oss_
reset
,
oss_
timer_loop
,
oss_
get_render_buffer
,
oss_
release_render_buffer
,
oss_
get_capture_buffer
,
oss_
release_capture_buffer
,
oss_
is_format_supported
,
oss_
get_mix_format
,
oss_
get_buffer_size
,
oss_
get_latency
,
oss_
get_current_padding
,
oss_
get_next_packet_size
,
oss_
get_frequency
,
oss_
get_position
,
oss_
set_volumes
,
oss_
set_event_handle
,
oss_
is_started
,
oss_
midi_release
,
oss_
midi_out_message
,
oss_
midi_in_message
,
oss_
midi_notify_wait
,
oss_
aux_message
,
test_connect
,
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
,
midi_release
,
midi_out_message
,
midi_in_message
,
midi_notify_wait
,
aux_message
,
};
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
oss_
midi_release
(
void
*
args
)
DECLSPEC_HIDDEN
;
NTSTATUS
oss_
midi_out_message
(
void
*
args
)
DECLSPEC_HIDDEN
;
NTSTATUS
oss_
midi_in_message
(
void
*
args
)
DECLSPEC_HIDDEN
;
NTSTATUS
oss_
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
oss_
wow64_midi_out_message
(
void
*
args
)
DECLSPEC_HIDDEN
;
NTSTATUS
oss_
wow64_midi_in_message
(
void
*
args
)
DECLSPEC_HIDDEN
;
NTSTATUS
oss_
wow64_midi_notify_wait
(
void
*
args
)
DECLSPEC_HIDDEN
;
#endif
extern
unixlib_handle_t
oss_handle
;
#define OSS_CALL(func, params) __wine_unix_call(oss_handle,
oss_ ##
func, params)
#define OSS_CALL(func, params) __wine_unix_call(oss_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