mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:16:04 +00:00
[MSACM32_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68454
This commit is contained in:
parent
a0281be468
commit
4c4170d093
1 changed files with 24 additions and 0 deletions
|
@ -127,8 +127,30 @@ static BOOL CALLBACK DriverEnumProc(HACMDRIVERID hadid,
|
|||
TODO: should it be *exactly* sizeof(dd), as tested here?
|
||||
*/
|
||||
if (rc == MMSYSERR_NOERROR) {
|
||||
struct {
|
||||
const char *shortname;
|
||||
const WORD mid;
|
||||
const WORD pid;
|
||||
} *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 },
|
||||
{ "MS-PCM", MM_MICROSOFT, MM_MSFT_ACM_PCM },
|
||||
{ 0 }
|
||||
};
|
||||
|
||||
ok(dd.cbStruct == sizeof(dd),
|
||||
"acmDriverDetailsA(): cbStruct = %08x\n", dd.cbStruct);
|
||||
|
||||
for (iter = expected_ids; iter->shortname; ++iter) {
|
||||
if (dd.szShortName && !strcmp(iter->shortname, dd.szShortName)) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (rc == MMSYSERR_NOERROR && winetest_interactive) {
|
||||
|
@ -139,6 +161,8 @@ static BOOL CALLBACK DriverEnumProc(HACMDRIVERID hadid,
|
|||
trace(" Features: %s\n", dd.szFeatures);
|
||||
trace(" Supports %u formats\n", dd.cFormatTags);
|
||||
trace(" Supports %u filter formats\n", dd.cFilterTags);
|
||||
trace(" Mid: 0x%x\n", dd.wMid);
|
||||
trace(" Pid: 0x%x\n", dd.wPid);
|
||||
}
|
||||
|
||||
/* try bad pointer */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue