From 85ff1e4d0bb64c1f3d856d5ed661cc18c453db75 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 8 Mar 2008 19:58:15 +0000 Subject: [PATCH] made waveOutWrite overrun a non-fatal (if spammy) warning, and only with developer 1000 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8197 d7cf8633-e32d-0410-b094-e92efae38249 --- snd_win.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/snd_win.c b/snd_win.c index 85080631..c6180473 100644 --- a/snd_win.c +++ b/snd_win.c @@ -709,9 +709,10 @@ void SndSys_Submit (void) if (wResult != MMSYSERR_NOERROR) { - Con_Print("Failed to write block to device\n"); - SndSys_Shutdown (); - return; + if (developer.integer >= 1000) + Con_Print("waveOutWrite failed (too much sound data)\n"); + //SndSys_Shutdown (); + //return; } paintpot -= wav_buffer_size; -- 2.39.2