From: divverent Date: Sun, 9 Mar 2008 19:26:39 +0000 (+0000) Subject: go back to block counting, looks like we now know what's broken with waveOut X-Git-Tag: xonotic-v0.1.0preview~2319 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1e19944073c6010762d916e691eda025a4922961;p=xonotic%2Fdarkplaces.git go back to block counting, looks like we now know what's broken with waveOut git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8207 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/snd_win.c b/snd_win.c index c27b3772..2313e419 100644 --- 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;