mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 22:46:43 +00:00
[MSACM32_WINETEST] Sync with Wine Staging 4.18. CORE-16441
This commit is contained in:
parent
323975a79e
commit
b7117625d7
1 changed files with 27 additions and 15 deletions
|
@ -1106,7 +1106,7 @@ static void test_convert(void)
|
||||||
MMRESULT mmr;
|
MMRESULT mmr;
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
||||||
for (i = 0; i < sizeof(expected_output)/sizeof(struct stream_output); i++)
|
for (i = 0; i < ARRAY_SIZE(expected_output); i++)
|
||||||
{
|
{
|
||||||
mmr = acmStreamOpen(&has, NULL, (WAVEFORMATEX *)&expected_output[i].src, (WAVEFORMATEX *)&expected_output[i].dst, NULL, 0, 0, 0);
|
mmr = acmStreamOpen(&has, NULL, (WAVEFORMATEX *)&expected_output[i].src, (WAVEFORMATEX *)&expected_output[i].dst, NULL, 0, 0, 0);
|
||||||
ok(mmr == MMSYSERR_NOERROR, "#%d: open failed: 0x%x\n", i, mmr);
|
ok(mmr == MMSYSERR_NOERROR, "#%d: open failed: 0x%x\n", i, mmr);
|
||||||
|
@ -1322,28 +1322,40 @@ static void test_mp3(void)
|
||||||
src.nBlockSize = 0;
|
src.nBlockSize = 0;
|
||||||
|
|
||||||
mr = acmStreamOpen(&has, NULL, (WAVEFORMATEX*)&src, &dst, NULL, 0, 0, 0);
|
mr = acmStreamOpen(&has, NULL, (WAVEFORMATEX*)&src, &dst, NULL, 0, 0, 0);
|
||||||
ok(mr == MMSYSERR_NOERROR, "failed with error 0x%x\n", mr);
|
ok(mr == MMSYSERR_NOERROR || broken(mr == ACMERR_NOTPOSSIBLE) /* Win 2008 */,
|
||||||
mr = acmStreamClose(has, 0);
|
"failed with error 0x%x\n", mr);
|
||||||
ok(mr == MMSYSERR_NOERROR, "failed with error 0x%x\n", mr);
|
if (mr == MMSYSERR_NOERROR)
|
||||||
|
{
|
||||||
|
mr = acmStreamClose(has, 0);
|
||||||
|
ok(mr == MMSYSERR_NOERROR, "failed with error 0x%x\n", mr);
|
||||||
|
}
|
||||||
src.nBlockSize = 576;
|
src.nBlockSize = 576;
|
||||||
src.wfx.nAvgBytesPerSec = 0;
|
src.wfx.nAvgBytesPerSec = 0;
|
||||||
|
|
||||||
mr = acmStreamOpen(&has, NULL, (WAVEFORMATEX*)&src, &dst, NULL, 0, 0, 0);
|
mr = acmStreamOpen(&has, NULL, (WAVEFORMATEX*)&src, &dst, NULL, 0, 0, 0);
|
||||||
ok(mr == MMSYSERR_NOERROR, "failed with error 0x%x\n", mr);
|
ok(mr == MMSYSERR_NOERROR || broken(mr == ACMERR_NOTPOSSIBLE) /* Win 2008 */,
|
||||||
/* causes a division by zero exception */
|
"failed with error 0x%x\n", mr);
|
||||||
if (0) acmStreamSize(has, 4000, &output, ACM_STREAMSIZEF_SOURCE);
|
if (mr == MMSYSERR_NOERROR)
|
||||||
mr = acmStreamClose(has, 0);
|
{
|
||||||
ok(mr == MMSYSERR_NOERROR, "failed with error 0x%x\n", mr);
|
/* causes a division by zero exception in XP, Vista,
|
||||||
|
but throws ACMERR_NOTPOSSIBLE on others */
|
||||||
|
if (0) acmStreamSize(has, 4000, &output, ACM_STREAMSIZEF_SOURCE);
|
||||||
|
mr = acmStreamClose(has, 0);
|
||||||
|
ok(mr == MMSYSERR_NOERROR, "failed with error 0x%x\n", mr);
|
||||||
|
}
|
||||||
|
|
||||||
src.wfx.nAvgBytesPerSec = 2000;
|
src.wfx.nAvgBytesPerSec = 2000;
|
||||||
|
|
||||||
mr = acmStreamOpen(&has, NULL, (WAVEFORMATEX*)&src, &dst, NULL, 0, 0, 0);
|
mr = acmStreamOpen(&has, NULL, (WAVEFORMATEX*)&src, &dst, NULL, 0, 0, 0);
|
||||||
ok(mr == MMSYSERR_NOERROR, "failed with error 0x%x\n", mr);
|
ok(mr == MMSYSERR_NOERROR || broken(mr == ACMERR_NOTPOSSIBLE) /* Win 2008 */,
|
||||||
mr = acmStreamSize(has, 4000, &output, ACM_STREAMSIZEF_SOURCE);
|
"failed with error 0x%x\n", mr);
|
||||||
ok(mr == MMSYSERR_NOERROR, "failed with error 0x%x\n", mr);
|
if (mr == MMSYSERR_NOERROR)
|
||||||
mr = acmStreamClose(has, 0);
|
{
|
||||||
ok(mr == MMSYSERR_NOERROR, "failed with error 0x%x\n", mr);
|
mr = acmStreamSize(has, 4000, &output, ACM_STREAMSIZEF_SOURCE);
|
||||||
|
ok(mr == MMSYSERR_NOERROR, "failed with error 0x%x\n", mr);
|
||||||
|
mr = acmStreamClose(has, 0);
|
||||||
|
ok(mr == MMSYSERR_NOERROR, "failed with error 0x%x\n", mr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct
|
static struct
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue