changeset 16140:0671f92d2cb4

reset estimation also on too negative diff
author reimar
date Thu, 28 Jul 2005 17:11:22 +0000
parents aaa677f0188c
children 23c43acebe1b
files libao2/ao_jack.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_jack.c	Thu Jul 28 17:02:05 2005 +0000
+++ b/libao2/ao_jack.c	Thu Jul 28 17:11:22 2005 +0000
@@ -186,7 +186,7 @@
   if (estimate) {
     float now = (float)GetTimer() / 1000000.0;
     float diff = callback_time + callback_interval - now;
-    if (diff < 0.002)
+    if ((diff > -0.002) && (diff < 0.002))
       callback_time += callback_interval;
     else
       callback_time = now;