From 494a34bfdad45bf0afca38530b573c263f9905d3 Mon Sep 17 00:00:00 2001 From: Jeremy White Date: Wed, 23 Feb 2005 20:28:28 +0000 Subject: [PATCH] An interactive test should have volume, else a rational user will decide it is broken. --- dlls/winmm/tests/wave.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/winmm/tests/wave.c b/dlls/winmm/tests/wave.c index 4ea73a9bf50..82149216b0b 100644 --- a/dlls/winmm/tests/wave.c +++ b/dlls/winmm/tests/wave.c @@ -536,6 +536,10 @@ static void wave_out_test_deviceOut(int device, double duration, dev_name(device),wave_out_error(rc)); WaitForSingleObject(hevent,INFINITE); + rc=waveOutSetVolume(wout,volume); + ok(rc==MMSYSERR_NOERROR,"waveOutSetVolume(%s): rc=%s\n", + dev_name(device),wave_out_error(rc)); + start=GetTickCount(); rc=waveOutWrite(wout, &frag, sizeof(frag)); ok(rc==MMSYSERR_NOERROR,"waveOutWrite(%s): rc=%s\n", @@ -550,10 +554,6 @@ static void wave_out_test_deviceOut(int device, double duration, "The sound played for %ld ms instead of %g ms\n", end-start,1000*duration); - rc=waveOutSetVolume(wout,volume); - ok(rc==MMSYSERR_NOERROR,"waveOutSetVolume(%s): rc=%s\n", - dev_name(device),wave_out_error(rc)); - check_position(device, wout, frag.dwBufferLength, pwfx); }