]> Git Repo - qemu.git/blobdiff - audio/audio.c
util: move declarations out of qemu-common.h
[qemu.git] / audio / audio.c
index e84153293ca05bb8e2cff64b3ce5527e61abea97..e60c124de82c9370c301a23c33a076454146a327 100644 (file)
@@ -27,6 +27,7 @@
 #include "monitor/monitor.h"
 #include "qemu/timer.h"
 #include "sysemu/sysemu.h"
+#include "qemu/cutils.h"
 
 #define AUDIO_CAP "audio"
 #include "audio_int.h"
@@ -1869,8 +1870,7 @@ static void audio_init (void)
         }
         conf.period.ticks = 1;
     } else {
-        conf.period.ticks =
-            muldiv64 (1, get_ticks_per_sec (), conf.period.hertz);
+        conf.period.ticks = NANOSECONDS_PER_SECOND / conf.period.hertz;
     }
 
     e = qemu_add_vm_change_state_handler (audio_vm_change_state_handler, s);
This page took 0.023759 seconds and 4 git commands to generate.