Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5eeed9ab
Commit
5eeed9ab
authored
Apr 21, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
May 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi/tests: Add some tests for PKEY_AudioEngine_DeviceFormat.
parent
d41303b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
propstore.c
dlls/mmdevapi/tests/propstore.c
+18
-0
No files found.
dlls/mmdevapi/tests/propstore.c
View file @
5eeed9ab
...
...
@@ -29,6 +29,9 @@
#include "uuids.h"
#include "mmdeviceapi.h"
#include "devpkey.h"
#include "ks.h"
#include "ksmedia.h"
#include "mmreg.h"
static
BOOL
(
WINAPI
*
pIsWow64Process
)(
HANDLE
,
BOOL
*
);
...
...
@@ -38,6 +41,7 @@ static const WCHAR software_renderW[] =
static
void
test_propertystore
(
IPropertyStore
*
store
)
{
const
WAVEFORMATEXTENSIBLE
*
format
;
HRESULT
hr
;
PROPVARIANT
pv
;
char
temp
[
128
];
...
...
@@ -68,6 +72,20 @@ static void test_propertystore(IPropertyStore *store)
ok
(
hr
==
S_OK
,
"Failed with %08lx
\n
"
,
hr
);
ok
(
pv
.
vt
==
VT_EMPTY
,
"Key should not be found
\n
"
);
PropVariantClear
(
&
pv
);
pv
.
vt
=
VT_EMPTY
;
hr
=
IPropertyStore_GetValue
(
store
,
(
const
PROPERTYKEY
*
)
&
PKEY_AudioEngine_DeviceFormat
,
&
pv
);
ok
(
hr
==
S_OK
,
"Failed with %08lx
\n
"
,
hr
);
ok
(
pv
.
vt
==
VT_BLOB
,
"Got type %u
\n
"
,
pv
.
vt
);
ok
(
pv
.
blob
.
cbSize
==
sizeof
(
WAVEFORMATEXTENSIBLE
),
"Got size %lu
\n
"
,
pv
.
blob
.
cbSize
);
format
=
(
const
void
*
)
pv
.
blob
.
pBlobData
;
ok
(
format
->
Format
.
wFormatTag
==
WAVE_FORMAT_EXTENSIBLE
,
"Got format tag %#x
\n
"
,
format
->
Format
.
wFormatTag
);
ok
(
format
->
Format
.
cbSize
==
sizeof
(
WAVEFORMATEXTENSIBLE
)
-
sizeof
(
WAVEFORMATEX
),
"Got extra size %u
\n
"
,
format
->
Format
.
cbSize
);
todo_wine
ok
(
format
->
Format
.
wBitsPerSample
==
16
,
"Got bit depth %u
\n
"
,
format
->
Format
.
wBitsPerSample
);
todo_wine
ok
(
IsEqualGUID
(
&
format
->
SubFormat
,
&
KSDATAFORMAT_SUBTYPE_PCM
),
"Got subformat %s
\n
"
,
debugstr_guid
(
&
format
->
SubFormat
));
PropVariantClear
(
&
pv
);
}
static
void
test_deviceinterface
(
IPropertyStore
*
store
)
...
...
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