Revision 74475455 audio/noaudio.c
b/audio/noaudio.c | ||
---|---|---|
46 | 46 |
int64_t ticks; |
47 | 47 |
int64_t bytes; |
48 | 48 |
|
49 |
now = qemu_get_clock (vm_clock); |
|
49 |
now = qemu_get_clock_ns (vm_clock);
|
|
50 | 50 |
ticks = now - no->old_ticks; |
51 | 51 |
bytes = muldiv64 (ticks, hw->info.bytes_per_second, get_ticks_per_sec ()); |
52 | 52 |
bytes = audio_MIN (bytes, INT_MAX); |
... | ... | |
102 | 102 |
int samples = 0; |
103 | 103 |
|
104 | 104 |
if (dead) { |
105 |
int64_t now = qemu_get_clock (vm_clock); |
|
105 |
int64_t now = qemu_get_clock_ns (vm_clock);
|
|
106 | 106 |
int64_t ticks = now - no->old_ticks; |
107 | 107 |
int64_t bytes = |
108 | 108 |
muldiv64 (ticks, hw->info.bytes_per_second, get_ticks_per_sec ()); |
Also available in: Unified diff