Use integer math.

This commit is contained in:
carlo-bramini 2018-11-03 21:07:37 +01:00 committed by GitHub
parent afbd818f8a
commit d20f6cff66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2152,7 +2152,7 @@ int fluid_player_set_midi_tempo(fluid_player_t *player, int tempo)
*/
int fluid_player_set_bpm(fluid_player_t *player, int bpm)
{
return fluid_player_set_midi_tempo(player, (int)((double) 60 * 1e6 / bpm));
return fluid_player_set_midi_tempo(player, 60000000L / bpm);
}
/**