summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorfalkTX <falktx@falktx.com>2020-07-16 20:24:26 +0100
committerfalkTX <falktx@falktx.com>2020-07-16 20:24:26 +0100
commit0e5f15dbda2d997a7f2605b48d8f5b8c73d8f2a7 (patch)
treeaa0932cdb594268a7c1bc9fd2336793272b016e5 /linux
parent0393da5868eb7d080d15603e82781338cce3bcae (diff)
downloadjack2-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.c2
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
/*