From: havoc Date: Tue, 1 Apr 2008 09:01:43 +0000 (+0000) Subject: clean up a couple warnings X-Git-Tag: xonotic-v0.1.0preview~2291 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=54ec851f6fa97e2812378405bcb0f677da2d5e65;p=xonotic%2Fdarkplaces.git clean up a couple warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8237 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/snd_win.c b/snd_win.c index 2313e419..fff1e3aa 100644 --- a/snd_win.c +++ b/snd_win.c @@ -737,8 +737,6 @@ Returns the number of sample frames consumed since the sound started unsigned int SndSys_GetSoundTime (void) { unsigned int factor; - MMRESULT res; - MMTIME mmtime; factor = snd_renderbuffer->format.width * snd_renderbuffer->format.channels; @@ -779,12 +777,15 @@ unsigned int SndSys_GetSoundTime (void) /* * S_PaintAndSubmit: WARNING: newsoundtime (soundtime (275 < 134217707) * apparently this sound time wraps quite early? + { + MMRESULT res; + MMTIME mmtime; mmtime.wType = TIME_SAMPLES; res = waveOutGetPosition(hWaveOut, &mmtime, sizeof(mmtime)); if(res == MMSYSERR_NOERROR) return mmtime.u.sample; - + } */ }