From 31fc9b15f9a7bf62ff044eb1dd6eb4722f470bdc Mon Sep 17 00:00:00 2001 From: molivier Date: Thu, 8 Jun 2006 21:39:20 +0000 Subject: [PATCH] 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 --- snd_bsd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.2