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
bc26431e
Commit
bc26431e
authored
Sep 21, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 25, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msacm32/tests: Allow alternative product id.
parent
c0308873
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
msacm.c
dlls/msacm32/tests/msacm.c
+13
-5
mmreg.h
include/mmreg.h
+1
-0
No files found.
dlls/msacm32/tests/msacm.c
View file @
bc26431e
...
...
@@ -127,15 +127,16 @@ static BOOL CALLBACK DriverEnumProc(HACMDRIVERID hadid,
TODO: should it be *exactly* sizeof(dd), as tested here?
*/
if
(
rc
==
MMSYSERR_NOERROR
)
{
struct
{
st
atic
const
st
ruct
{
const
char
*
shortname
;
const
WORD
mid
;
const
WORD
pid
;
WORD
mid
;
WORD
pid
;
WORD
pid_alt
;
}
*
iter
,
expected_ids
[]
=
{
{
"Microsoft IMA ADPCM"
,
MM_MICROSOFT
,
MM_MSFT_ACM_IMAADPCM
},
{
"MS-ADPCM"
,
MM_MICROSOFT
,
MM_MSFT_ACM_MSADPCM
},
{
"Microsoft CCITT G.711"
,
MM_MICROSOFT
,
MM_MSFT_ACM_G711
},
{
"MPEG Layer-3 Codec"
,
MM_FRAUNHOFER_IIS
,
MM_FHGIIS_MPEGLAYER3_DECODE
},
{
"MPEG Layer-3 Codec"
,
MM_FRAUNHOFER_IIS
,
MM_FHGIIS_MPEGLAYER3_DECODE
,
MM_FHGIIS_MPEGLAYER3_PROFESSIONAL
},
{
"MS-PCM"
,
MM_MICROSOFT
,
MM_MSFT_ACM_PCM
},
{
0
}
};
...
...
@@ -145,7 +146,14 @@ static BOOL CALLBACK DriverEnumProc(HACMDRIVERID hadid,
for
(
iter
=
expected_ids
;
iter
->
shortname
;
++
iter
)
{
if
(
dd
.
szShortName
&&
!
strcmp
(
iter
->
shortname
,
dd
.
szShortName
))
{
ok
(
iter
->
mid
==
dd
.
wMid
&&
iter
->
pid
==
dd
.
wPid
,
/* try alternative product id on mismatch */
if
(
iter
->
pid_alt
&&
iter
->
pid
!=
dd
.
wPid
)
ok
(
iter
->
mid
==
dd
.
wMid
&&
iter
->
pid_alt
==
dd
.
wPid
,
"Got wrong manufacturer (0x%x vs 0x%x) or product (0x%x vs 0x%x)
\n
"
,
dd
.
wMid
,
iter
->
mid
,
dd
.
wPid
,
iter
->
pid_alt
);
else
ok
(
iter
->
mid
==
dd
.
wMid
&&
iter
->
pid
==
dd
.
wPid
,
"Got wrong manufacturer (0x%x vs 0x%x) or product (0x%x vs 0x%x)
\n
"
,
dd
.
wMid
,
iter
->
mid
,
dd
.
wPid
,
iter
->
pid
);
...
...
include/mmreg.h
View file @
bc26431e
...
...
@@ -129,6 +129,7 @@ typedef struct _WAVEFORMATEX {
#define MM_FRAUNHOFER_IIS 0xAC
#define MM_FHGIIS_MPEGLAYER3_DECODE 0x09
#define MM_FHGIIS_MPEGLAYER3_PROFESSIONAL 0x0d
#if !defined(WAVE_FORMAT_EXTENSIBLE)
#define WAVE_FORMAT_EXTENSIBLE 0xFFFE
/* Microsoft */
...
...
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