*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Sun, 19 May 2002 20:37:48 +0000
changeset 176fa3cf3b26af4
parent 175 ec13489b36ba
child 177 0108822670c8
*** empty log message ***
music.c
     1.1 --- a/music.c	Sun May 19 20:03:59 2002 +0000
     1.2 +++ b/music.c	Sun May 19 20:37:48 2002 +0000
     1.3 @@ -648,6 +648,7 @@
     1.4  	    case MUS_MP3:
     1.5  		SMPEG_enableaudio(music->data.mp3,1);
     1.6  		SMPEG_enablevideo(music->data.mp3,0);
     1.7 +		SMPEG_rewind(music_playing->data.mp3);
     1.8  		SMPEG_play(music->data.mp3);
     1.9  		break;
    1.10  #endif
    1.11 @@ -736,9 +737,7 @@
    1.12  #endif
    1.13  #ifdef MP3_MUSIC
    1.14  	    case MUS_MP3:
    1.15 -		if ( position == 0.0 ) {
    1.16 -			SMPEG_rewind(music_playing->data.mp3);
    1.17 -		} else {
    1.18 +		if ( position > 0.0 ) {
    1.19  			SMPEG_skip(music_playing->data.mp3, position);
    1.20  		}
    1.21  		break;