winmm/tests: Strictly test returned time format of waveOutGetPostion().
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
37f3a07831
commit
43158a173d
|
@ -495,9 +495,8 @@ static void check_position(int device, HWAVEOUT wout, DWORD bytes,
|
|||
rc=waveOutGetPosition(wout, &mmtime, sizeof(mmtime) + 1);
|
||||
ok(rc==MMSYSERR_NOERROR,
|
||||
"waveOutGetPosition(%s): rc=%s\n",dev_name(device),wave_out_error(rc));
|
||||
if (mmtime.wType != TIME_BYTES && winetest_debug > 1)
|
||||
trace("waveOutGetPosition(%s): TIME_BYTES not supported, returned %s\n",
|
||||
dev_name(device),wave_time_format(mmtime.wType));
|
||||
ok(mmtime.wType == TIME_BYTES, "(waveOutGetPosition(%s): returned %s\n",
|
||||
dev_name(device), wave_time_format(mmtime.wType));
|
||||
returned = time_to_bytes(&mmtime, pwfx);
|
||||
ok(returned == bytes, "waveOutGetPosition(%s): returned %d bytes, "
|
||||
"should be %d\n", dev_name(device), returned, bytes);
|
||||
|
@ -506,9 +505,8 @@ static void check_position(int device, HWAVEOUT wout, DWORD bytes,
|
|||
rc=waveOutGetPosition(wout, &mmtime, sizeof(mmtime));
|
||||
ok(rc==MMSYSERR_NOERROR,
|
||||
"waveOutGetPosition(%s): rc=%s\n",dev_name(device),wave_out_error(rc));
|
||||
if (mmtime.wType != TIME_SAMPLES && winetest_debug > 1)
|
||||
trace("waveOutGetPosition(%s): TIME_SAMPLES not supported, "
|
||||
"returned %s\n",dev_name(device),wave_time_format(mmtime.wType));
|
||||
ok(mmtime.wType == TIME_SAMPLES, "(waveOutGetPosition(%s): returned %s\n",
|
||||
dev_name(device), wave_time_format(mmtime.wType));
|
||||
returned = time_to_bytes(&mmtime, pwfx);
|
||||
ok(returned == bytes, "waveOutGetPosition(%s): returned %d samples "
|
||||
"(%d bytes), should be %d (%d bytes)\n", dev_name(device),
|
||||
|
@ -529,9 +527,8 @@ static void check_position(int device, HWAVEOUT wout, DWORD bytes,
|
|||
rc=waveOutGetPosition(wout, &mmtime, sizeof(mmtime));
|
||||
ok(rc==MMSYSERR_NOERROR,
|
||||
"waveOutGetPosition(%s): rc=%s\n",dev_name(device),wave_out_error(rc));
|
||||
if (mmtime.wType != TIME_SMPTE && winetest_debug > 1)
|
||||
trace("waveOutGetPosition(%s): TIME_SMPTE not supported, returned %s\n",
|
||||
dev_name(device),wave_time_format(mmtime.wType));
|
||||
todo_wine ok(mmtime.wType == TIME_BYTES, "(waveOutGetPosition(%s): returned %s\n",
|
||||
dev_name(device), wave_time_format(mmtime.wType));
|
||||
returned = time_to_bytes(&mmtime, pwfx);
|
||||
ok(returned == bytes, "waveOutGetPosition(%s): SMPTE test failed\n",
|
||||
dev_name(device));
|
||||
|
@ -540,9 +537,8 @@ static void check_position(int device, HWAVEOUT wout, DWORD bytes,
|
|||
rc=waveOutGetPosition(wout, &mmtime, sizeof(mmtime));
|
||||
ok(rc==MMSYSERR_NOERROR,
|
||||
"waveOutGetPosition(%s): rc=%s\n",dev_name(device),wave_out_error(rc));
|
||||
if (mmtime.wType != TIME_MIDI && winetest_debug > 1)
|
||||
trace("waveOutGetPosition(%s): TIME_MIDI not supported, returned %s\n",
|
||||
dev_name(device),wave_time_format(mmtime.wType));
|
||||
ok(mmtime.wType == TIME_BYTES, "(waveOutGetPosition(%s): returned %s\n",
|
||||
dev_name(device), wave_time_format(mmtime.wType));
|
||||
returned = time_to_bytes(&mmtime, pwfx);
|
||||
ok(returned == bytes, "waveOutGetPosition(%s): MIDI test failed\n",
|
||||
dev_name(device));
|
||||
|
@ -551,9 +547,8 @@ static void check_position(int device, HWAVEOUT wout, DWORD bytes,
|
|||
rc=waveOutGetPosition(wout, &mmtime, sizeof(mmtime));
|
||||
ok(rc==MMSYSERR_NOERROR,
|
||||
"waveOutGetPosition(%s): rc=%s\n",dev_name(device),wave_out_error(rc));
|
||||
if (mmtime.wType != TIME_TICKS && winetest_debug > 1)
|
||||
trace("waveOutGetPosition(%s): TIME_TICKS not supported, returned %s\n",
|
||||
dev_name(device),wave_time_format(mmtime.wType));
|
||||
ok(mmtime.wType == TIME_BYTES, "(waveOutGetPosition(%s): returned %s\n",
|
||||
dev_name(device), wave_time_format(mmtime.wType));
|
||||
returned = time_to_bytes(&mmtime, pwfx);
|
||||
ok(returned == bytes, "waveOutGetPosition(%s): TICKS test failed\n",
|
||||
dev_name(device));
|
||||
|
|
Loading…
Reference in New Issue