Skip to content

Commit

Permalink
The seek position is an absolute one, not a skip from the current time.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 15, 2012
1 parent a0117ec commit cd46620
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions music.c
Expand Up @@ -1064,11 +1064,10 @@ int music_internal_position(double position)
#endif
#ifdef MP3_MUSIC
case MUS_MP3:
smpeg.SMPEG_rewind(music_playing->data.mp3);
smpeg.SMPEG_play(music_playing->data.mp3);
if ( position > 0.0 ) {
smpeg.SMPEG_skip(music_playing->data.mp3, (float)position);
} else {
smpeg.SMPEG_rewind(music_playing->data.mp3);
smpeg.SMPEG_play(music_playing->data.mp3);
}
break;
#endif
Expand Down

0 comments on commit cd46620

Please sign in to comment.