]> Git Repo - qemu.git/blobdiff - audio/wavaudio.c
Unexport ticks_per_sec variable. Create get_ticks_per_sec() function
[qemu.git] / audio / wavaudio.c
index c4aa60ea88c70944052deee42944f4126e62a9fc..78eb758bd635831135d773cc831928acab8834de 100644 (file)
@@ -54,7 +54,7 @@ static int wav_run_out (HWVoiceOut *hw)
     struct st_sample *src;
     int64_t now = qemu_get_clock (vm_clock);
     int64_t ticks = now - wav->old_ticks;
-    int64_t bytes = (ticks * hw->info.bytes_per_second) / ticks_per_sec;
+    int64_t bytes = (ticks * hw->info.bytes_per_second) / get_ticks_per_sec();
 
     if (bytes > INT_MAX) {
         samples = INT_MAX >> hw->info.shift;
This page took 0.024879 seconds and 4 git commands to generate.