winmm/tests: Remove two unused variables (and dead code) from check_position.
This commit is contained in:
parent
173a813e6a
commit
eab579dfcb
|
@ -482,14 +482,9 @@ static void check_position(int device, HWAVEOUT wout, DWORD bytes,
|
||||||
LPWAVEFORMATEX pwfx )
|
LPWAVEFORMATEX pwfx )
|
||||||
{
|
{
|
||||||
MMTIME mmtime;
|
MMTIME mmtime;
|
||||||
DWORD samples;
|
|
||||||
double duration;
|
|
||||||
MMRESULT rc;
|
MMRESULT rc;
|
||||||
DWORD returned;
|
DWORD returned;
|
||||||
|
|
||||||
samples=bytes/(pwfx->wBitsPerSample/8*pwfx->nChannels);
|
|
||||||
duration=((double)samples)/pwfx->nSamplesPerSec;
|
|
||||||
|
|
||||||
mmtime.wType = TIME_BYTES;
|
mmtime.wType = TIME_BYTES;
|
||||||
rc=waveOutGetPosition(wout, &mmtime, sizeof(mmtime));
|
rc=waveOutGetPosition(wout, &mmtime, sizeof(mmtime));
|
||||||
ok(rc==MMSYSERR_NOERROR,
|
ok(rc==MMSYSERR_NOERROR,
|
||||||
|
|
Loading…
Reference in New Issue