winmm/tests: Fix waveInGetPosition type.
We're comparing the reported value against dwBytesRecorded, so we should request the value to be in bytes.
This commit is contained in:
parent
fdf8ab11d9
commit
35e4aac8f6
|
@ -226,10 +226,11 @@ static void wave_in_test_deviceIn(int device, LPWAVEFORMATEX pwfx, DWORD format,
|
|||
"frag.dwBytesRecorded=%d, should=%d\n",
|
||||
frag.dwBytesRecorded,pwfx->nAvgBytesPerSec);
|
||||
|
||||
mmt.wType = TIME_SAMPLES;
|
||||
mmt.wType = TIME_BYTES;
|
||||
rc=waveInGetPosition(win, &mmt, sizeof(mmt));
|
||||
ok(rc==MMSYSERR_NOERROR,"waveInGetPosition(%s): rc=%s\n",
|
||||
dev_name(device),wave_in_error(rc));
|
||||
ok(mmt.wType == TIME_BYTES, "doesn't support TIME_BYTES: %u\n", mmt.wType);
|
||||
ok(mmt.u.cb == frag.dwBytesRecorded, "Got wrong position: %u\n", mmt.u.cb);
|
||||
|
||||
/* stop playing on error */
|
||||
|
|
Loading…
Reference in New Issue