Commit 9ff27bf6 authored by Robert Reif's avatar Robert Reif Committed by Alexandre Julliard

winmm: Print out more info on failed test.

Print out more info on failed test. Looks like there is a bug in ALSA OSS emulation where it is returning a mid-sample position.
parent a9328088
......@@ -472,9 +472,10 @@ static void check_position(int device, HWAVEOUT wout, DWORD bytes,
trace("waveOutGetPosition(%s): TIME_SAMPLES not supported, "
"returned %s\n",dev_name(device),wave_time_format(mmtime.wType));
returned = time_to_bytes(&mmtime, pwfx);
ok(returned == bytes, "waveOutGetPosition(%s): returned %ld samples, "
"should be %ld\n", dev_name(device), bytes_to_samples(returned, pwfx),
bytes_to_samples(bytes, pwfx));
ok(returned == bytes, "waveOutGetPosition(%s): returned %ld samples "
"(%ld bytes), should be %ld (%ld bytes)\n", dev_name(device),
bytes_to_samples(returned, pwfx), returned,
bytes_to_samples(bytes, pwfx), bytes);
mmtime.wType = TIME_MS;
rc=waveOutGetPosition(wout, &mmtime, sizeof(mmtime));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment