src/audio/arts/SDL_artsaudio.c
changeset 929 03fb90fc135e
parent 864 0c892e99b65b
child 956 4263beff9e38
equal deleted inserted replaced
928:6c87754f324c 929:03fb90fc135e
   138 
   138 
   139 	if ( LoadARTSLibrary() < 0 ) {
   139 	if ( LoadARTSLibrary() < 0 ) {
   140 		return available;
   140 		return available;
   141 	}
   141 	}
   142 	if ( SDL_NAME(arts_init)() == 0 ) {
   142 	if ( SDL_NAME(arts_init)() == 0 ) {
       
   143 #define ARTS_CRASH_HACK	/* Play a stream so aRts doesn't crash */
       
   144 #ifdef ARTS_CRASH_HACK
       
   145 		arts_stream_t stream2;
       
   146 		stream2=SDL_NAME(arts_play_stream)(44100, 16, 2, "SDL");
       
   147 		SDL_NAME(arts_write)(stream2, "", 0);
       
   148 		SDL_NAME(arts_close_stream)(stream2);
       
   149 #endif
   143 		available = 1;
   150 		available = 1;
   144 		SDL_NAME(arts_free)();
   151 		SDL_NAME(arts_free)();
   145 	}
   152 	}
   146 	UnloadARTSLibrary();
   153 	UnloadARTSLibrary();
   147 
   154