diff options
author | falkTX <falktx@falktx.com> | 2020-07-16 13:43:43 +0100 |
---|---|---|
committer | falkTX <falktx@falktx.com> | 2020-07-16 13:43:43 +0100 |
commit | 0393da5868eb7d080d15603e82781338cce3bcae (patch) | |
tree | 8d91c16a2bfd19c642a9301e78bf83e134ed3c81 /linux | |
parent | df0f004183bce54502cca4d62161419eb5b19d76 (diff) | |
download | jack2-0393da5868eb7d080d15603e82781338cce3bcae.tar.gz |
Remove `floor` call in timeout calculation
See #614
Signed-off-by: falkTX <falktx@falktx.com>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/alsa/alsa_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/alsa/alsa_driver.c b/linux/alsa/alsa_driver.c index be9c4493..1943ec30 100644 --- a/linux/alsa/alsa_driver.c +++ b/linux/alsa/alsa_driver.c @@ -900,7 +900,7 @@ alsa_driver_set_parameters (alsa_driver_t *driver, driver->period_usecs = (jack_time_t) floor ((((float) driver->frames_per_cycle) / driver->frame_rate) * 1000000.0f); - driver->poll_timeout_ms = (int) floor (1.5f * (driver->period_usecs / 1000.0f)); + driver->poll_timeout_ms = (int) (1.5f * (driver->period_usecs / 1000.0f)); // JACK2 /* |