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
3b9e089c
Commit
3b9e089c
authored
Oct 19, 2015
by
Andrew Eikum
Committed by
Alexandre Julliard
Oct 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xaudio2: Implement IXAudio28MasteringVoice::GetChannelMask.
Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3f55d106
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
xaudio2.c
dlls/xaudio2_7/tests/xaudio2.c
+7
-0
xaudio_dll.c
dlls/xaudio2_7/xaudio_dll.c
+3
-0
No files found.
dlls/xaudio2_7/tests/xaudio2.c
View file @
3b9e089c
...
...
@@ -174,6 +174,7 @@ static void test_simple_streaming(IXAudio2 *xa)
XAUDIO2_VOICE_STATE
state
;
XAUDIO2_EFFECT_DESCRIPTOR
effect
;
XAUDIO2_EFFECT_CHAIN
chain
;
DWORD
chmask
;
memset
(
&
ecb_state
,
0
,
sizeof
(
ecb_state
));
memset
(
&
src1_state
,
0
,
sizeof
(
src1_state
));
...
...
@@ -196,6 +197,12 @@ static void test_simple_streaming(IXAudio2 *xa)
hr
=
IXAudio2_CreateMasteringVoice
(
xa
,
&
master
,
2
,
44100
,
0
,
NULL
,
NULL
,
AudioCategory_GameEffects
);
ok
(
hr
==
S_OK
,
"CreateMasteringVoice failed: %08x
\n
"
,
hr
);
if
(
!
xaudio27
){
chmask
=
0xdeadbeef
;
IXAudio2MasteringVoice_GetChannelMask
(
master
,
&
chmask
);
ok
(
chmask
==
(
SPEAKER_FRONT_LEFT
|
SPEAKER_FRONT_RIGHT
),
"Got unexpected channel mask: 0x%x
\n
"
,
chmask
);
}
/* create first source voice */
fmt
.
wFormatTag
=
WAVE_FORMAT_IEEE_FLOAT
;
fmt
.
nChannels
=
2
;
...
...
dlls/xaudio2_7/xaudio_dll.c
View file @
3b9e089c
...
...
@@ -966,7 +966,10 @@ static void WINAPI XA2M_GetChannelMask(IXAudio2MasteringVoice *iface,
DWORD
*
pChannelMask
)
{
IXAudio2Impl
*
This
=
impl_from_IXAudio2MasteringVoice
(
iface
);
TRACE
(
"%p %p
\n
"
,
This
,
pChannelMask
);
*
pChannelMask
=
This
->
fmt
.
dwChannelMask
;
}
static
const
struct
IXAudio2MasteringVoiceVtbl
XAudio2MasteringVoice_Vtbl
=
{
...
...
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