aboutsummaryrefslogtreecommitdiff
path: root/audio/audio.c
diff options
context:
space:
mode:
authormalc <av1474@comtv.ru>2009-09-18 08:16:03 +0400
committermalc <av1474@comtv.ru>2009-09-18 14:04:36 +0400
commit4f4cc0efde875ec9fce206c365597878fc4921e7 (patch)
treeb57773b376d9ee7c2b8071847f05c59e1ab78293 /audio/audio.c
parent68f6dc7ebd377ce92abd1f3a991c792143af23b0 (diff)
audio: use muldiv64 where it makes sense
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'audio/audio.c')
-rw-r--r--audio/audio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/audio.c b/audio/audio.c
index d8e54961fe..a3e23b212b 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -1878,7 +1878,8 @@ static void audio_init (void)
}
conf.period.ticks = 1;
} else {
- conf.period.ticks = get_ticks_per_sec() / conf.period.hertz;
+ conf.period.ticks =
+ muldiv64 (1, get_ticks_per_sec (), conf.period.hertz);
}
e = qemu_add_vm_change_state_handler (audio_vm_change_state_handler, s);