Skip to content

Commit

Permalink
Fixed fading out of small looping music samples.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 30, 2002
1 parent 0ef0757 commit 290cbf6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions music.c
Expand Up @@ -182,7 +182,9 @@ void music_mixer(void *udata, Uint8 *stream, int len)
if ( !music_internal_playing() ) {
/* Restart music if it has to loop at a high level */
if ( music_loops && --music_loops ) {
Mix_Fading current_fade = music_playing->fading;
music_internal_play(music_playing, 0.0);
music_playing->fading = current_fade;
} else {
music_internal_halt();
if ( music_finished_hook ) {
Expand Down

0 comments on commit 290cbf6

Please sign in to comment.