playmus.c
changeset 4 5c4485704b30
parent 0 4ce2db4db959
child 10 2fbd0414a1fc
     1.1 --- a/playmus.c	Sat Oct 23 00:39:09 1999 +0000
     1.2 +++ b/playmus.c	Sat Oct 23 03:31:21 1999 +0000
     1.3 @@ -39,6 +39,10 @@
     1.4  
     1.5  void CleanUp(void)
     1.6  {
     1.7 +	if( Mix_PlayingMusic() ) {
     1.8 +		Mix_FadeOutMusic(1500);
     1.9 +		SDL_Delay(1500);
    1.10 +	}
    1.11  	if ( audio_open ) {
    1.12  		Mix_CloseAudio();
    1.13  		audio_open = 0;
    1.14 @@ -121,7 +125,7 @@
    1.15  	}
    1.16  
    1.17  	/* Play and then exit */
    1.18 -	Mix_PlayMusic(music,0);
    1.19 +	Mix_FadeInMusic(music,0,2000);
    1.20  	while ( Mix_PlayingMusic() ) {
    1.21  		SDL_Delay(100);
    1.22  	}