An interactive test should have volume, else a rational user will

decide it is broken.
This commit is contained in:
Jeremy White 2005-02-23 20:28:28 +00:00 committed by Alexandre Julliard
parent d68294f06f
commit 494a34bfda
1 changed files with 4 additions and 4 deletions

View File

@ -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);
}