From: molivier Date: Thu, 8 Jun 2006 21:39:20 +0000 (+0000) Subject: The BSD audio module had the same bug as the OSS module (incorrectly reporting "audio... X-Git-Tag: xonotic-v0.1.0preview~3936 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=31fc9b15f9a7bf62ff044eb1dd6eb4722f470bdc;p=xonotic%2Fdarkplaces.git The BSD audio module had the same bug as the OSS module (incorrectly reporting "audio can't keep up") git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6441 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/snd_bsd.c b/snd_bsd.c index adb28d8f..e202342b 100644 --- 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; }