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
a33c14fd
Commit
a33c14fd
authored
Mar 03, 2021
by
Huw Davies
Committed by
Alexandre Julliard
Mar 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecoreaudio: Cast enums to ints when printing.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0c2defd9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
mmdevdrv.c
dlls/winecoreaudio.drv/mmdevdrv.c
+4
-3
No files found.
dlls/winecoreaudio.drv/mmdevdrv.c
View file @
a33c14fd
...
@@ -1748,7 +1748,7 @@ static DWORD ca_channel_layout_to_channel_mask(const AudioChannelLayout *layout)
...
@@ -1748,7 +1748,7 @@ static DWORD ca_channel_layout_to_channel_mask(const AudioChannelLayout *layout)
for
(
i
=
0
;
i
<
layout
->
mNumberChannelDescriptions
;
++
i
)
{
for
(
i
=
0
;
i
<
layout
->
mNumberChannelDescriptions
;
++
i
)
{
switch
(
layout
->
mChannelDescriptions
[
i
].
mChannelLabel
)
{
switch
(
layout
->
mChannelDescriptions
[
i
].
mChannelLabel
)
{
default:
FIXME
(
"Unhandled channel 0x%x
\n
"
,
layout
->
mChannelDescriptions
[
i
].
mChannelLabel
);
break
;
default:
FIXME
(
"Unhandled channel 0x%x
\n
"
,
(
unsigned
int
)
layout
->
mChannelDescriptions
[
i
].
mChannelLabel
);
break
;
case
kAudioChannelLabel_Left
:
mask
|=
SPEAKER_FRONT_LEFT
;
break
;
case
kAudioChannelLabel_Left
:
mask
|=
SPEAKER_FRONT_LEFT
;
break
;
case
kAudioChannelLabel_Mono
:
case
kAudioChannelLabel_Mono
:
case
kAudioChannelLabel_Center
:
mask
|=
SPEAKER_FRONT_CENTER
;
break
;
case
kAudioChannelLabel_Center
:
mask
|=
SPEAKER_FRONT_CENTER
;
break
;
...
@@ -1893,12 +1893,13 @@ static HRESULT WINAPI AudioClient_GetMixFormat(IAudioClient3 *iface,
...
@@ -1893,12 +1893,13 @@ static HRESULT WINAPI AudioClient_GetMixFormat(IAudioClient3 *iface,
sc
=
AudioObjectGetPropertyData
(
This
->
adevid
,
&
addr
,
0
,
NULL
,
&
size
,
layout
);
sc
=
AudioObjectGetPropertyData
(
This
->
adevid
,
&
addr
,
0
,
NULL
,
&
size
,
layout
);
if
(
sc
==
noErr
){
if
(
sc
==
noErr
){
TRACE
(
"Got channel layout: {tag: 0x%x, bitmap: 0x%x, num_descs: %u}
\n
"
,
TRACE
(
"Got channel layout: {tag: 0x%x, bitmap: 0x%x, num_descs: %u}
\n
"
,
layout
->
mChannelLayoutTag
,
layout
->
mChannelBitmap
,
layout
->
mNumberChannelDescriptions
);
(
unsigned
int
)
layout
->
mChannelLayoutTag
,
(
unsigned
int
)
layout
->
mChannelBitmap
,
(
unsigned
int
)
layout
->
mNumberChannelDescriptions
);
if
(
layout
->
mChannelLayoutTag
==
kAudioChannelLayoutTag_UseChannelDescriptions
){
if
(
layout
->
mChannelLayoutTag
==
kAudioChannelLayoutTag_UseChannelDescriptions
){
convert_channel_layout
(
layout
,
fmt
);
convert_channel_layout
(
layout
,
fmt
);
}
else
{
}
else
{
WARN
(
"Haven't implemented support for this layout tag: 0x%x, guessing at layout
\n
"
,
layout
->
mChannelLayoutTag
);
WARN
(
"Haven't implemented support for this layout tag: 0x%x, guessing at layout
\n
"
,
(
unsigned
int
)
layout
->
mChannelLayoutTag
);
fmt
->
Format
.
nChannels
=
0
;
fmt
->
Format
.
nChannels
=
0
;
}
}
}
else
{
}
else
{
...
...
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