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
b089e4a2
Commit
b089e4a2
authored
Jun 12, 2023
by
Davide Beatrici
Committed by
Alexandre Julliard
Jun 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa: Implement main_loop in unixlib.
parent
03e5c9fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
2 deletions
+29
-2
alsa.c
dlls/winealsa.drv/alsa.c
+22
-2
mmdevdrv.c
dlls/winealsa.drv/mmdevdrv.c
+7
-0
No files found.
dlls/winealsa.drv/alsa.c
View file @
b089e4a2
...
...
@@ -476,6 +476,13 @@ static WCHAR *alsa_get_card_name(int card)
return
ret
;
}
static
NTSTATUS
alsa_main_loop
(
void
*
args
)
{
struct
main_loop_params
*
params
=
args
;
NtSetEvent
(
params
->
event
,
NULL
);
return
STATUS_SUCCESS
;
}
static
NTSTATUS
alsa_get_endpoint_ids
(
void
*
args
)
{
static
const
WCHAR
defaultW
[]
=
{
'd'
,
'e'
,
'f'
,
'a'
,
'u'
,
'l'
,
't'
,
0
};
...
...
@@ -2493,7 +2500,7 @@ unixlib_entry_t __wine_unix_call_funcs[] =
{
alsa_not_implemented
,
alsa_not_implemented
,
alsa_
not_implemented
,
alsa_
main_loop
,
alsa_get_endpoint_ids
,
alsa_create_stream
,
alsa_release_stream
,
...
...
@@ -2531,6 +2538,19 @@ unixlib_entry_t __wine_unix_call_funcs[] =
typedef
UINT
PTR32
;
static
NTSTATUS
alsa_wow64_main_loop
(
void
*
args
)
{
struct
{
PTR32
event
;
}
*
params32
=
args
;
struct
main_loop_params
params
=
{
.
event
=
ULongToHandle
(
params32
->
event
)
};
return
alsa_main_loop
(
&
params
);
}
static
NTSTATUS
alsa_wow64_get_endpoint_ids
(
void
*
args
)
{
struct
...
...
@@ -2934,7 +2954,7 @@ unixlib_entry_t __wine_unix_call_wow64_funcs[] =
{
alsa_not_implemented
,
alsa_not_implemented
,
alsa_
not_implemented
,
alsa_
wow64_main_loop
,
alsa_wow64_get_endpoint_ids
,
alsa_wow64_create_stream
,
alsa_wow64_release_stream
,
...
...
dlls/winealsa.drv/mmdevdrv.c
View file @
b089e4a2
...
...
@@ -76,6 +76,8 @@ extern const IAudioClock2Vtbl AudioClock2_Vtbl;
extern
const
IAudioStreamVolumeVtbl
AudioStreamVolume_Vtbl
;
extern
const
IChannelAudioVolumeVtbl
ChannelAudioVolume_Vtbl
;
extern
HRESULT
main_loop_start
(
void
)
DECLSPEC_HIDDEN
;
extern
struct
audio_session_wrapper
*
session_wrapper_create
(
struct
audio_client
*
client
)
DECLSPEC_HIDDEN
;
...
...
@@ -598,6 +600,11 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient3 *iface,
return
AUDCLNT_E_ALREADY_INITIALIZED
;
}
if
(
FAILED
(
params
.
result
=
main_loop_start
())){
sessions_unlock
();
return
params
.
result
;
}
dump_fmt
(
fmt
);
params
.
name
=
NULL
;
...
...
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