mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
Unexport ticks_per_sec variable. Create get_ticks_per_sec() function
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
b03b2e48cb
commit
6ee093c907
44 changed files with 130 additions and 113 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue