Skip to content

Commit

Permalink
average overall error during cast
Browse files Browse the repository at this point in the history
addresses #141
  • Loading branch information
derselbst committed Aug 18, 2017
1 parent d313db5 commit 12db1c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fluidsynth/src/midi/fluid_midi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1624,7 +1624,7 @@ fluid_player_callback(void *data, unsigned int msec)
player->cur_msec = msec;
player->cur_ticks = (player->start_ticks
+ (int) ((double) (player->cur_msec - player->start_msec)
/ player->deltatime));
/ player->deltatime + 0.5)); /* 0.5 to average overall error when casting */

for (i = 0; i < player->ntracks; i++) {
if (!fluid_track_eot(player->track[i])) {
Expand Down

0 comments on commit 12db1c0

Please sign in to comment.