The seek position is an absolute one, not a skip from the current time.
authorSam Lantinga <slouken@libsdl.org>
Sat, 14 Jan 2012 22:00:29 -0500
changeset 56564688955a7b2
parent 564 2aee47b6dc73
child 566 e992907737c1
The seek position is an absolute one, not a skip from the current time.
music.c
     1.1 --- a/music.c	Sat Jan 14 19:52:34 2012 -0500
     1.2 +++ b/music.c	Sat Jan 14 22:00:29 2012 -0500
     1.3 @@ -1064,11 +1064,10 @@
     1.4  #endif
     1.5  #ifdef MP3_MUSIC
     1.6  	    case MUS_MP3:
     1.7 +		smpeg.SMPEG_rewind(music_playing->data.mp3);
     1.8 +		smpeg.SMPEG_play(music_playing->data.mp3);
     1.9  		if ( position > 0.0 ) {
    1.10  			smpeg.SMPEG_skip(music_playing->data.mp3, (float)position);
    1.11 -		} else {
    1.12 -			smpeg.SMPEG_rewind(music_playing->data.mp3);
    1.13 -			smpeg.SMPEG_play(music_playing->data.mp3);
    1.14  		}
    1.15  		break;
    1.16  #endif