aboutsummaryrefslogtreecommitdiff
path: root/oss.c
diff options
context:
space:
mode:
Diffstat (limited to 'oss.c')
-rw-r--r--oss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/oss.c b/oss.c
index 4210799eb7..1922985c1c 100644
--- a/oss.c
+++ b/oss.c
@@ -459,11 +459,11 @@ int AUD_get_free (void)
uint64_t ua_elapsed;
uint64_t al_elapsed;
- ticks = cpu_get_ticks ();
+ ticks = qemu_get_clock(rt_clock);
delta = ticks - old_ticks;
old_ticks = ticks;
- ua_elapsed = (delta * bytes_per_second) / ticks_per_sec;
+ ua_elapsed = (delta * bytes_per_second) / 1000;
al_elapsed = ua_elapsed & ~3ULL;
ldebug ("tid elapsed %llu bytes\n", ua_elapsed);