From 1e19944073c6010762d916e691eda025a4922961 Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 9 Mar 2008 19:26:39 +0000 Subject: [PATCH] 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 --- snd_win.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; -- 2.39.2