is added)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8203
d7cf8633-e32d-0410-b094-
e92efae38249
static int soundtimehack = -1;
static int oldsoundtime = 0;
- cls.soundstats.latency_milliseconds = -1;
-
if (snd_renderbuffer == NULL || nosound.integer)
return;
- cls.soundstats.latency_milliseconds = (snd_renderbuffer->endframe - snd_renderbuffer->startframe) * 1000 / snd_renderbuffer->format.speed;
-
// Update sound time
snd_usethreadedmixing = false;
usesoundtimehack = true;
SndSys_Submit();
oldsoundtime = soundtime;
+
+ cls.soundstats.latency_milliseconds = (snd_renderbuffer->endframe - snd_renderbuffer->startframe) * 1000 / snd_renderbuffer->format.speed;
}
/*