]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_bsd.c
moved almost all server cvars to sv_main.c and added corresponding
[xonotic/darkplaces.git] / snd_bsd.c
index adb28d8fb6c8eb3d78867a5f6471157fddeee240..e202342b798ba331575571cdbd82a355b09769fc 100644 (file)
--- a/snd_bsd.c
+++ b/snd_bsd.c
@@ -160,9 +160,9 @@ void SndSys_Submit (void)
 
                snd_renderbuffer->startframe += written / factor;
 
-               if ((unsigned int)written < nbframes * factor)
+               if ((unsigned int)written < limit * factor)
                {
-                       Con_Printf("SndSys_Submit: audio can't keep up! (%d < %u)\n", written, nbframes * factor);
+                       Con_Printf("SndSys_Submit: audio can't keep up! (%u < %u)\n", written, limit * factor);
                        return;
                }