]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
made waveOutWrite overrun a non-fatal (if spammy) warning, and only with
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 8 Mar 2008 19:58:15 +0000 (19:58 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 8 Mar 2008 19:58:15 +0000 (19:58 +0000)
developer 1000

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8197 d7cf8633-e32d-0410-b094-e92efae38249

snd_win.c

index 850806316b0645fef175b6351761c832fbcfee2e..c61804730a7de28f4d1c911364e4abfc31e8151e 100644 (file)
--- 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;