This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Harald Welte gerrit-no-reply at lists.osmocom.orgReview at https://gerrit.osmocom.org/5564 RTP_Emulation: Fix calculation of timer + timestamp increment Change-Id: I3ba0d31ad571f42721f208a40f7dcbd8fb2c6e88 --- M library/RTP_Emulation.ttcn 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/64/5564/1 diff --git a/library/RTP_Emulation.ttcn b/library/RTP_Emulation.ttcn index e4a3029..10cf683 100644 --- a/library/RTP_Emulation.ttcn +++ b/library/RTP_Emulation.ttcn @@ -89,14 +89,14 @@ RTP.send(t_RTP_Send(g_rtp_conn_id, RTP_messages_union:{rtp:=rtp})); /* increment sequence + timestamp for next transmit */ g_tx_next_seq := g_tx_next_seq + 1; - g_tx_next_ts := g_tx_next_ts + (g_tx_samplerate_hz mod (1000 mod g_tx_duration_ms)); + g_tx_next_ts := g_tx_next_ts + (g_tx_samplerate_hz / (1000 / g_tx_duration_ms)); } function f_main() runs on RTP_Emulation_CT { var Result res; - timer T_transmit := 1000.0/int2float(g_tx_duration_ms); + timer T_transmit := int2float(g_tx_duration_ms)/1000.0; var RTP_RecvFrom rx_rtp; var template RTP_RecvFrom tr := { connId := ?, -- To view, visit https://gerrit.osmocom.org/5564 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3ba0d31ad571f42721f208a40f7dcbd8fb2c6e88 Gerrit-PatchSet: 1 Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Owner: Harald Welte <laforge at gnumonks.org>