mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -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
|
@ -757,8 +757,8 @@ static void complete (SB16State *s)
|
|||
freq = s->freq > 0 ? s->freq : 11025;
|
||||
samples = dsp_get_lohi (s) + 1;
|
||||
bytes = samples << s->fmt_stereo << (s->fmt_bits == 16);
|
||||
ticks = (bytes * ticks_per_sec) / freq;
|
||||
if (ticks < ticks_per_sec / 1024) {
|
||||
ticks = (bytes * get_ticks_per_sec()) / freq;
|
||||
if (ticks < get_ticks_per_sec() / 1024) {
|
||||
qemu_irq_raise (s->pic);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue