Andrew Eikum : winmm/tests: Fix waveInGetPosition type.
Alexandre Julliard
julliard at winehq.org
Sat Jul 27 13:23:36 CDT 2013
Module: wine
Branch: master
Commit: 35e4aac8f659dcf3d77731691c9e17ecf3d6f488
URL: http://source.winehq.org/git/wine.git/?a=commit;h=35e4aac8f659dcf3d77731691c9e17ecf3d6f488
Author: Andrew Eikum <aeikum at codeweavers.com>
Date: Fri Jul 26 14:17:03 2013 -0500
winmm/tests: Fix waveInGetPosition type.
We're comparing the reported value against dwBytesRecorded, so we should
request the value to be in bytes.
---
dlls/winmm/tests/capture.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/winmm/tests/capture.c b/dlls/winmm/tests/capture.c
index f904bb1..d3d60db 100644
--- a/dlls/winmm/tests/capture.c
+++ b/dlls/winmm/tests/capture.c
@@ -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 */
More information about the wine-cvs
mailing list