if (snd_renderbuffer == NULL || nosound.integer)
return;
- if (snd_blocked > 0 && !cls.timedemo && !(cls.capturevideo.soundrate && !cls.capturevideo.realtime))
- return;
-
// Update sound time
if (cls.timedemo) // SUPER NASTY HACK to mix non-realtime sound for more reliable benchmarking
newsoundtime = (unsigned int)((double)cl.mtime[0] * (double)snd_renderbuffer->format.speed);
else if (simsound)
newsoundtime = (unsigned int)((realtime - snd_starttime) * (double)snd_renderbuffer->format.speed);
else
+ {
newsoundtime = SndSys_GetSoundTime();
+ if (snd_blocked > 0)
+ return;
+ }
newsoundtime += extrasoundtime;
if (newsoundtime < soundtime)
if (snd_renderbuffer == NULL || nosound.integer)
return;
- if (snd_blocked > 0 && !cls.timedemo && !(cls.capturevideo.soundrate && !cls.capturevideo.realtime))
- return;
-
// If snd_swapstereo or snd_channellayout has changed, recompute the channel layout
if (current_swapstereo != snd_swapstereo.integer ||
current_channellayout != snd_channellayout.integer)