]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
go back to block counting, looks like we now know what's broken with waveOut
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 9 Mar 2008 19:26:39 +0000 (19:26 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 9 Mar 2008 19:26:39 +0000 (19:26 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8207 d7cf8633-e32d-0410-b094-e92efae38249

snd_win.c

index c27b3772043e945bc0802b87bce1f18de3eba88f..2313e41938a3da2e2a0e53178407b60901006ea5 100644 (file)
--- a/snd_win.c
+++ b/snd_win.c
@@ -759,7 +759,6 @@ unsigned int SndSys_GetSoundTime (void)
 
        if (wav_init)
        {
-               /*
                // Find which sound blocks have completed
                for (;;)
                {
@@ -776,12 +775,17 @@ unsigned int SndSys_GetSoundTime (void)
                }
 
                return (snd_completed * wav_buffer_size) / factor;
-               */
+
+               /*
+                * S_PaintAndSubmit: WARNING: newsoundtime (soundtime (275 < 134217707)
+                * apparently this sound time wraps quite early?
 
                mmtime.wType = TIME_SAMPLES;
                res = waveOutGetPosition(hWaveOut, &mmtime, sizeof(mmtime));
                if(res == MMSYSERR_NOERROR)
                        return mmtime.u.sample;
+
+               */
        }
 
        return 0;