diff options
author | falkTX <falktx@falktx.com> | 2020-07-16 20:24:26 +0100 |
---|---|---|
committer | falkTX <falktx@falktx.com> | 2020-07-16 20:24:26 +0100 |
commit | 0e5f15dbda2d997a7f2605b48d8f5b8c73d8f2a7 (patch) | |
tree | aa0932cdb594268a7c1bc9fd2336793272b016e5 /linux | |
parent | 0393da5868eb7d080d15603e82781338cce3bcae (diff) | |
download | jack2-0e5f15dbda2d997a7f2605b48d8f5b8c73d8f2a7.tar.gz |
Fix integer conversion for poll_timeout_ms
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 1943ec30..977d4c42 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) (1.5f * (driver->period_usecs / 1000.0f)); + driver->poll_timeout_ms = (int) (1.5f * (driver->period_usecs / 1000.0f) + 0.5f); // JACK2 /* |