Skip to content

Commit

Permalink
Fixed Timidity_Seek() seeking to high positions (from libtimidity.)
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Mar 17, 2021
1 parent 2d8bfdb commit 62a8269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timidity/playmidi.c
Expand Up @@ -637,7 +637,7 @@ void Timidity_Start(MidiSong *song)

void Timidity_Seek(MidiSong *song, Uint32 ms)
{
skip_to(song, (ms * song->rate) / 1000);
skip_to(song, (ms * (song->rate / 100)) / 10);
}

Uint32 Timidity_GetSongLength(MidiSong *song)
Expand Down

0 comments on commit 62a8269

Please sign in to comment.