aboutsummaryrefslogtreecommitdiff
path: root/audio/rawrec/files/patch-sleep__on__option.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/rawrec/files/patch-sleep__on__option.c')
-rw-r--r--audio/rawrec/files/patch-sleep__on__option.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/audio/rawrec/files/patch-sleep__on__option.c b/audio/rawrec/files/patch-sleep__on__option.c
new file mode 100644
index 000000000000..299a6d09a1d1
--- /dev/null
+++ b/audio/rawrec/files/patch-sleep__on__option.c
@@ -0,0 +1,11 @@
+--- sleep_on_option.c.orig 2006-01-05 17:36:27 UTC
++++ sleep_on_option.c
+@@ -15,7 +15,7 @@ void sleep_on_option(double time, double
+
+ if ( time > samples / speed ) {
+ reqst.tv_sec = (time_t) floor(time);
+- reqst.tv_nsec = (long) nearbyint((time - floor(time)) * 1000000);
++ reqst.tv_nsec = (long) rint((time - floor(time)) * 1000000);
+ } else {
+ reqst.tv_sec = (time_t) floor(samples / speed);
+ reqst.tv_nsec = (long) rint((samples / speed - floor(samples / speed))