kludge to keep from hanging on MinGW
authorBradley Bell <btb@icculus.org>
Mon, 29 Nov 2004 08:01:47 +0000 (08:01 +0000)
committerBradley Bell <btb@icculus.org>
Mon, 29 Nov 2004 08:01:47 +0000 (08:01 +0000)
ChangeLog
arch/sdl/digi.c

index f85959c..3f42a17 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2004-11-28  Bradley Bell  <btb@icculus.org>
 
+       * arch/sdl/digi.c: kludge to keep from hanging on MinGW
+
        * arch/sdl/digi.c: use d2src system for persistent sounds
 
        * arch/sdl/digi.c, main/digi.h: original prototype in d2src is
index 42845a4..a791db4 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: digi.c,v 1.20 2004-11-29 07:34:27 btb Exp $ */
+/* $Id: digi.c,v 1.21 2004-11-29 08:01:47 btb Exp $ */
 /*
  *
  * SDL digital audio support
@@ -227,6 +227,9 @@ void digi_close()
 {
        if (!digi_initialised) return;
        digi_initialised = 0;
+#ifdef __MINGW32__
+       SDL_Delay(500); // CloseAudio hangs if it's called too soon after opening?
+#endif
        SDL_CloseAudio();
 }