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
231670e8
Commit
231670e8
authored
Jun 19, 2023
by
Fabian Maurer
Committed by
Alexandre Julliard
Feb 15, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi/tests: Add test for invalid format with exclusive mode.
parent
c62ca5fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
render.c
dlls/mmdevapi/tests/render.c
+16
-0
No files found.
dlls/mmdevapi/tests/render.c
View file @
231670e8
...
...
@@ -139,11 +139,23 @@ static void test_audioclient(void)
HRESULT
hr
;
ULONG
ref
;
WAVEFORMATEX
*
pwfx
,
*
pwfx2
;
WAVEFORMATEXTENSIBLE
format_float_error
;
REFERENCE_TIME
t1
,
t2
;
HANDLE
handle
;
BOOL
offload_capable
;
AudioClientProperties
client_props
;
format_float_error
.
Format
.
cbSize
=
sizeof
(
WAVEFORMATEXTENSIBLE
);
format_float_error
.
Format
.
wFormatTag
=
WAVE_FORMAT_EXTENSIBLE
;
format_float_error
.
Format
.
nAvgBytesPerSec
=
384000
;
format_float_error
.
Format
.
nBlockAlign
=
8
;
format_float_error
.
Format
.
nChannels
=
2
;
format_float_error
.
Format
.
nSamplesPerSec
=
48000
;
format_float_error
.
Format
.
wBitsPerSample
=
32
;
format_float_error
.
Samples
.
wValidBitsPerSample
=
4
;
format_float_error
.
dwChannelMask
=
3
;
format_float_error
.
SubFormat
=
KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
;
hr
=
IMMDevice_Activate
(
dev
,
&
IID_IAudioClient3
,
CLSCTX_INPROC_SERVER
,
NULL
,
(
void
**
)
&
ac3
);
ok
(
hr
==
S_OK
||
...
...
@@ -258,6 +270,10 @@ static void test_audioclient(void)
"IsFormatSupported(Exclusive) call returns %08lx
\n
"
,
hr
);
hexcl
=
hr
;
hr
=
IAudioClient_IsFormatSupported
(
ac
,
AUDCLNT_SHAREMODE_EXCLUSIVE
,
&
format_float_error
.
Format
,
NULL
);
ok
(
hr
==
S_OK
||
hr
==
AUDCLNT_E_UNSUPPORTED_FORMAT
||
hr
==
AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED
,
"IsFormatSupported(Exclusive) call returns %08lx
\n
"
,
hr
);
pwfx2
=
(
WAVEFORMATEX
*
)
0xDEADF00D
;
hr
=
IAudioClient_IsFormatSupported
(
ac
,
AUDCLNT_SHAREMODE_EXCLUSIVE
,
pwfx
,
&
pwfx2
);
ok
(
hr
==
hexcl
,
"IsFormatSupported(Exclusive) call returns %08lx
\n
"
,
hr
);
...
...
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