]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
The BSD audio module had the same bug as the OSS module (incorrectly reporting "audio...
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 Jun 2006 21:39:20 +0000 (21:39 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 Jun 2006 21:39:20 +0000 (21:39 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6441 d7cf8633-e32d-0410-b094-e92efae38249

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;
                }