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 c27b377..2313e41 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;