winmm/tests: Expect TIME_BYTES format for TIME_MS request.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e03febf2a2
commit
aa56ee08f6
|
@ -519,14 +519,11 @@ static void check_position(int device, HWAVEOUT wout, DWORD bytes,
|
||||||
rc=waveOutGetPosition(wout, &mmtime, sizeof(mmtime));
|
rc=waveOutGetPosition(wout, &mmtime, sizeof(mmtime));
|
||||||
ok(rc==MMSYSERR_NOERROR,
|
ok(rc==MMSYSERR_NOERROR,
|
||||||
"waveOutGetPosition(%s): rc=%s\n",dev_name(device),wave_out_error(rc));
|
"waveOutGetPosition(%s): rc=%s\n",dev_name(device),wave_out_error(rc));
|
||||||
if (mmtime.wType != TIME_MS && winetest_debug > 1)
|
todo_wine ok(mmtime.wType == TIME_BYTES, "(waveOutGetPosition(%s): returned %s\n",
|
||||||
trace("waveOutGetPosition(%s): TIME_MS not supported, returned %s\n",
|
|
||||||
dev_name(device), wave_time_format(mmtime.wType));
|
dev_name(device), wave_time_format(mmtime.wType));
|
||||||
returned = time_to_bytes(&mmtime, pwfx);
|
returned = time_to_bytes(&mmtime, pwfx);
|
||||||
ok(returned == bytes, "waveOutGetPosition(%s): returned %d ms, "
|
ok(returned == bytes, "waveOutGetPosition(%s): TIME_MS test failed\n",
|
||||||
"(%d bytes), should be %d (%d bytes)\n", dev_name(device),
|
dev_name(device));
|
||||||
bytes_to_ms(returned, pwfx), returned,
|
|
||||||
bytes_to_ms(bytes, pwfx), bytes);
|
|
||||||
|
|
||||||
mmtime.wType = TIME_SMPTE;
|
mmtime.wType = TIME_SMPTE;
|
||||||
rc=waveOutGetPosition(wout, &mmtime, sizeof(mmtime));
|
rc=waveOutGetPosition(wout, &mmtime, sizeof(mmtime));
|
||||||
|
|
Loading…
Reference in New Issue