winmm: Remove variables duration and samples which are not really used from check_position.

This commit is contained in:
Gerald Pfeifer 2010-04-24 23:04:20 +02:00 committed by Alexandre Julliard
parent 0351f56e67
commit d623f0045a
1 changed files with 0 additions and 5 deletions

View File

@ -54,14 +54,9 @@ static void check_position(int device, HWAVEIN win, DWORD bytes,
LPWAVEFORMATEX pwfx )
{
MMTIME mmtime;
DWORD samples;
double duration;
MMRESULT rc;
DWORD returned;
samples=bytes/(pwfx->wBitsPerSample/8*pwfx->nChannels);
duration=((double)samples)/pwfx->nSamplesPerSec;
mmtime.wType = TIME_BYTES;
rc=waveInGetPosition(win, &mmtime, sizeof(mmtime));
ok(rc==MMSYSERR_NOERROR,