mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-18 21:51:22 +00:00
Use integer math
Actually, using an integer division produces the same result. Addresses #455.
This commit is contained in:
parent
da6a2e7a91
commit
a948f7c5b2
1 changed files with 1 additions and 1 deletions
|
@ -2225,7 +2225,7 @@ int fluid_player_get_total_ticks(fluid_player_t *player)
|
|||
*/
|
||||
int fluid_player_get_bpm(fluid_player_t *player)
|
||||
{
|
||||
return (int)(60e6 / player->miditempo);
|
||||
return 60000000L / player->miditempo;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue