Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include "quakedef.h"
#include <sys/param.h>
#include <sys/audioio.h>
#endif
#include <unistd.h>
-#include "quakedef.h"
#include "snd_main.h"
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;
}