Fixed fading out of small looping music samples.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 30 Oct 2002 12:11:12 +0000
changeset 196db9f7643b026
parent 195 816fe55f00f9
child 197 35157a4defe0
Fixed fading out of small looping music samples.
music.c
     1.1 --- a/music.c	Sun Oct 20 03:59:25 2002 +0000
     1.2 +++ b/music.c	Wed Oct 30 12:11:12 2002 +0000
     1.3 @@ -182,7 +182,9 @@
     1.4  		if ( !music_internal_playing() ) {
     1.5  			/* Restart music if it has to loop at a high level */
     1.6  			if ( music_loops && --music_loops ) {
     1.7 +                Mix_Fading current_fade = music_playing->fading;
     1.8  				music_internal_play(music_playing, 0.0);
     1.9 +                music_playing->fading = current_fade;
    1.10  			} else {
    1.11  				music_internal_halt();
    1.12  				if ( music_finished_hook ) {