]> git.proxmox.com Git - qemu.git/blobdiff - audio/wavaudio.c
aio / timers: Switch entire codebase to the new timer API
[qemu.git] / audio / wavaudio.c
index 950fa8f19c5fe5731036a21937f98640e379fef7..6846a1a9f73565250d8f4861b321868add89c911 100644 (file)
@@ -52,7 +52,7 @@ static int wav_run_out (HWVoiceOut *hw, int live)
     int rpos, decr, samples;
     uint8_t *dst;
     struct st_sample *src;
-    int64_t now = qemu_get_clock_ns (vm_clock);
+    int64_t now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL);
     int64_t ticks = now - wav->old_ticks;
     int64_t bytes =
         muldiv64 (ticks, hw->info.bytes_per_second, get_ticks_per_sec ());