summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Willmann <d.willmann@samsung.com>2013-05-09 15:19:48 +0100
committerDaniel Willmann <d.willmann@samsung.com>2013-06-14 13:25:57 +0100
commit3775167c3ba353145ae644942115b71b9578407a (patch)
treeb378c3ef4ae0ee17239f42706170c8bb4ba000e2
parentd8bd4107c2344ffd89181b3caf0fe91c627e5e53 (diff)
downloadefl-3775167c3ba353145ae644942115b71b9578407a.tar.gz
ecore_audio: Correctly calculate pulse timers
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
-rw-r--r--src/lib/ecore_audio/ecore_audio_pulse_ml.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_audio/ecore_audio_pulse_ml.c b/src/lib/ecore_audio/ecore_audio_pulse_ml.c
index b9ce552f18..ef9e6eaea2 100644
--- a/src/lib/ecore_audio/ecore_audio_pulse_ml.c
+++ b/src/lib/ecore_audio/ecore_audio_pulse_ml.c
@@ -149,7 +149,7 @@ _ecore_pa_time_new(pa_mainloop_api *api, const struct timeval *tv, pa_time_event
return NULL;
}
- interval = (tv->tv_sec - now.tv_sec) + (tv->tv_usec - now.tv_usec) / 1000;
+ interval = (tv->tv_sec - now.tv_sec) + (tv->tv_usec - now.tv_usec) / 1000000.0;
event->timer = ecore_timer_add(interval, _ecore_time_wrapper, event);
return event;
@@ -177,7 +177,7 @@ _ecore_pa_time_restart(pa_time_event *event, const struct timeval *tv)
return;
}
- interval = (tv->tv_sec - now.tv_sec) + (tv->tv_usec - now.tv_usec) / 1000;
+ interval = (tv->tv_sec - now.tv_sec) + (tv->tv_usec - now.tv_usec) / 1000000.0;
if (event->timer)
{
event->timer = ecore_timer_add(interval, _ecore_time_wrapper, event);