]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_win.c
Solaris compile fixes
[xonotic/darkplaces.git] / snd_win.c
index 2313e41938a3da2e2a0e53178407b60901006ea5..fff1e3aaf3c8a7326d9ef37eec78d51405892ce3 100644 (file)
--- 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;
-
+               }
                */
        }