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
176d6a8b
Commit
176d6a8b
authored
Jun 20, 2023
by
Davide Beatrici
Committed by
Alexandre Julliard
Jun 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winepulse: Use mmdevapi's set_stream_volumes.
parent
694d713d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
mmdevdrv.c
dlls/winepulse.drv/mmdevdrv.c
+2
-10
No files found.
dlls/winepulse.drv/mmdevdrv.c
View file @
176d6a8b
...
...
@@ -137,6 +137,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
);
static
inline
ACImpl
*
impl_from_IAudioClient3
(
IAudioClient3
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ACImpl
,
IAudioClient3_iface
);
...
...
@@ -149,16 +151,6 @@ static void pulse_call(enum unix_funcs code, void *params)
assert
(
!
status
);
}
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
;
pulse_call
(
set_volumes
,
&
params
);
}
static
void
get_device_guid
(
HKEY
drv_key
,
EDataFlow
flow
,
const
char
*
pulse_name
,
GUID
*
guid
)
{
WCHAR
key_name
[
MAX_PULSE_NAME_LEN
+
2
];
...
...
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