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
d9e1d419
Commit
d9e1d419
authored
Sep 15, 2023
by
Brendan Shanks
Committed by
Alexandre Julliard
Sep 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecoreaudio: Stop using the deprecated kAudioObjectPropertyElementMaster constant.
parent
ee17400c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
coreaudio.c
dlls/winecoreaudio.drv/coreaudio.c
+6
-2
No files found.
dlls/winecoreaudio.drv/coreaudio.c
View file @
d9e1d419
...
...
@@ -70,6 +70,10 @@
#include "unixlib.h"
#if !defined(MAC_OS_VERSION_12_0) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_VERSION_12_0
#define kAudioObjectPropertyElementMain kAudioObjectPropertyElementMaster
#endif
WINE_DEFAULT_DEBUG_CHANNEL
(
coreaudio
);
#define MAX_DEV_NAME_LEN 10
/* Max 32 bit digits */
...
...
@@ -239,7 +243,7 @@ static NTSTATUS unix_get_endpoint_ids(void *args)
params
->
default_idx
=
0
;
addr
.
mScope
=
kAudioObjectPropertyScopeGlobal
;
addr
.
mElement
=
kAudioObjectPropertyElementMa
ster
;
addr
.
mElement
=
kAudioObjectPropertyElementMa
in
;
if
(
params
->
flow
==
eRender
)
addr
.
mSelector
=
kAudioHardwarePropertyDefaultOutputDevice
;
else
if
(
params
->
flow
==
eCapture
)
addr
.
mSelector
=
kAudioHardwarePropertyDefaultInputDevice
;
else
{
...
...
@@ -1752,7 +1756,7 @@ static NTSTATUS unix_set_volumes(void *args)
AudioObjectPropertyAddress
prop_addr
=
{
kAudioDevicePropertyVolumeScalar
,
kAudioObjectPropertyScopeGlobal
,
kAudioObjectPropertyElementMa
ster
kAudioObjectPropertyElementMa
in
};
sc
=
AudioObjectSetPropertyData
(
stream
->
dev_id
,
&
prop_addr
,
0
,
NULL
,
sizeof
(
float
),
&
level
);
...
...
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