diff options
Diffstat (limited to 'audio/audio.c')
-rw-r--r-- | audio/audio.c | 3 |
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); |