mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 03:40:51 +00:00
msacm32/tests: Simplify check_count and msacm_tests.
This commit is contained in:
parent
3d310f03c3
commit
bf9d6f2dfd
|
@ -423,7 +423,7 @@ static const char * get_metric(UINT uMetric)
|
||||||
return "UNKNOWN";
|
return "UNKNOWN";
|
||||||
}
|
}
|
||||||
|
|
||||||
static DWORD check_count(UINT uMetric)
|
static void check_count(UINT uMetric)
|
||||||
{
|
{
|
||||||
DWORD dwMetric;
|
DWORD dwMetric;
|
||||||
MMRESULT rc;
|
MMRESULT rc;
|
||||||
|
@ -452,14 +452,11 @@ static DWORD check_count(UINT uMetric)
|
||||||
|
|
||||||
if (rc == MMSYSERR_NOERROR && winetest_interactive)
|
if (rc == MMSYSERR_NOERROR && winetest_interactive)
|
||||||
trace("%s: %u\n", get_metric(uMetric), dwMetric);
|
trace("%s: %u\n", get_metric(uMetric), dwMetric);
|
||||||
|
|
||||||
return dwMetric;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void msacm_tests(void)
|
static void msacm_tests(void)
|
||||||
{
|
{
|
||||||
MMRESULT rc;
|
MMRESULT rc;
|
||||||
DWORD dwCount;
|
|
||||||
DWORD dwACMVersion = acmGetVersion();
|
DWORD dwACMVersion = acmGetVersion();
|
||||||
|
|
||||||
if (winetest_interactive) {
|
if (winetest_interactive) {
|
||||||
|
@ -470,17 +467,17 @@ static void msacm_tests(void)
|
||||||
LOWORD(dwACMVersion) == 0 ? " (Retail)" : "");
|
LOWORD(dwACMVersion) == 0 ? " (Retail)" : "");
|
||||||
}
|
}
|
||||||
|
|
||||||
dwCount = check_count(ACM_METRIC_COUNT_CODECS);
|
check_count(ACM_METRIC_COUNT_CODECS);
|
||||||
dwCount = check_count(ACM_METRIC_COUNT_CONVERTERS);
|
check_count(ACM_METRIC_COUNT_CONVERTERS);
|
||||||
dwCount = check_count(ACM_METRIC_COUNT_DISABLED);
|
check_count(ACM_METRIC_COUNT_DISABLED);
|
||||||
dwCount = check_count(ACM_METRIC_COUNT_DRIVERS);
|
check_count(ACM_METRIC_COUNT_DRIVERS);
|
||||||
dwCount = check_count(ACM_METRIC_COUNT_FILTERS);
|
check_count(ACM_METRIC_COUNT_FILTERS);
|
||||||
dwCount = check_count(ACM_METRIC_COUNT_HARDWARE);
|
check_count(ACM_METRIC_COUNT_HARDWARE);
|
||||||
dwCount = check_count(ACM_METRIC_COUNT_LOCAL_CODECS);
|
check_count(ACM_METRIC_COUNT_LOCAL_CODECS);
|
||||||
dwCount = check_count(ACM_METRIC_COUNT_LOCAL_CONVERTERS);
|
check_count(ACM_METRIC_COUNT_LOCAL_CONVERTERS);
|
||||||
dwCount = check_count(ACM_METRIC_COUNT_LOCAL_DISABLED);
|
check_count(ACM_METRIC_COUNT_LOCAL_DISABLED);
|
||||||
dwCount = check_count(ACM_METRIC_COUNT_LOCAL_DRIVERS);
|
check_count(ACM_METRIC_COUNT_LOCAL_DRIVERS);
|
||||||
dwCount = check_count(ACM_METRIC_COUNT_LOCAL_FILTERS);
|
check_count(ACM_METRIC_COUNT_LOCAL_FILTERS);
|
||||||
|
|
||||||
if (winetest_interactive)
|
if (winetest_interactive)
|
||||||
trace("enabled drivers:\n");
|
trace("enabled drivers:\n");
|
||||||
|
|
Loading…
Reference in a new issue