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
f008d9a9
Commit
f008d9a9
authored
Jun 20, 2023
by
Davide Beatrici
Committed by
Alexandre Julliard
Jun 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa: Use mmdevapi's set_stream_volumes.
parent
eb1f62bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
mmdevdrv.c
dlls/winealsa.drv/mmdevdrv.c
+2
-12
No files found.
dlls/winealsa.drv/mmdevdrv.c
View file @
f008d9a9
...
...
@@ -85,6 +85,8 @@ extern HRESULT stream_release(stream_handle stream, HANDLE timer_thread);
extern
WCHAR
*
get_application_name
(
void
);
extern
void
set_stream_volumes
(
struct
audio_client
*
This
);
void
DECLSPEC_HIDDEN
sessions_lock
(
void
)
{
EnterCriticalSection
(
&
g_sessions_lock
);
...
...
@@ -201,18 +203,6 @@ static void get_device_guid(EDataFlow flow, const char *device, GUID *guid)
RegCloseKey
(
key
);
}
static
void
set_stream_volumes
(
ACImpl
*
This
)
{
struct
set_volumes_params
params
;
params
.
stream
=
This
->
stream
;
params
.
master_volume
=
(
This
->
session
->
mute
?
0
.
0
f
:
This
->
session
->
master_vol
);
params
.
volumes
=
This
->
vols
;
params
.
session_volumes
=
This
->
session
->
channel_vols
;
ALSA_CALL
(
set_volumes
,
&
params
);
}
HRESULT
WINAPI
AUDDRV_GetEndpointIDs
(
EDataFlow
flow
,
WCHAR
***
ids_out
,
GUID
**
guids_out
,
UINT
*
num
,
UINT
*
def_index
)
{
...
...
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