src/audio/arts/SDL_artsaudio.c
changeset 929 03fb90fc135e
parent 864 0c892e99b65b
child 956 4263beff9e38
--- a/src/audio/arts/SDL_artsaudio.c	Tue Aug 10 20:58:47 2004 +0000
+++ b/src/audio/arts/SDL_artsaudio.c	Wed Aug 18 21:41:39 2004 +0000
@@ -140,6 +140,13 @@
 		return available;
 	}
 	if ( SDL_NAME(arts_init)() == 0 ) {
+#define ARTS_CRASH_HACK	/* Play a stream so aRts doesn't crash */
+#ifdef ARTS_CRASH_HACK
+		arts_stream_t stream2;
+		stream2=SDL_NAME(arts_play_stream)(44100, 16, 2, "SDL");
+		SDL_NAME(arts_write)(stream2, "", 0);
+		SDL_NAME(arts_close_stream)(stream2);
+#endif
 		available = 1;
 		SDL_NAME(arts_free)();
 	}