FreeCalypso > hg > themwi-rtp-lib
comparison src/twjit.c @ 8:95f6c8ce33b0
twjit: prep for rework of time delta handling
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 05 Jul 2024 21:57:51 +0000 |
parents | 668b84c52094 |
children | 355de6301404 |
comparison
equal
deleted
inserted
replaced
7:32cb5a2d1178 | 8:95f6c8ce33b0 |
---|---|
35 return NULL; | 35 return NULL; |
36 | 36 |
37 twjit->ext_config = config; | 37 twjit->ext_config = config; |
38 twjit->ts_quantum = (uint32_t)quantum_ms * clock_khz; | 38 twjit->ts_quantum = (uint32_t)quantum_ms * clock_khz; |
39 twjit->quanta_per_sec = 1000 / quantum_ms; | 39 twjit->quanta_per_sec = 1000 / quantum_ms; |
40 twjit->ts_units_per_ms = clock_khz; | |
41 twjit->ts_units_per_sec = (uint32_t) clock_khz * 1000; | |
42 twjit->ns_to_ts_units = 1000000 / clock_khz; | |
40 twjit->state = TWJIT_STATE_EMPTY; | 43 twjit->state = TWJIT_STATE_EMPTY; |
41 INIT_LLIST_HEAD(&twjit->sb[0].queue); | 44 INIT_LLIST_HEAD(&twjit->sb[0].queue); |
42 INIT_LLIST_HEAD(&twjit->sb[1].queue); | 45 INIT_LLIST_HEAD(&twjit->sb[1].queue); |
43 | 46 |
44 return twjit; | 47 return twjit; |