From a99be44e3b49bfe74a0275aa7cca302c3889aea9 Mon Sep 17 00:00:00 2001 From: desaulov Date: Wed, 13 Aug 2025 10:24:15 -0400 Subject: simulate differential path delay diff --git a/tests/tools/RxTxApp/src/tx_st20p_app.c b/tests/tools/RxTxApp/src/tx_st20p_app.c index 77752867..a5cd65ca 100644 --- a/tests/tools/RxTxApp/src/tx_st20p_app.c +++ b/tests/tools/RxTxApp/src/tx_st20p_app.c @@ -310,6 +310,14 @@ static int app_tx_st20p_init(struct st_app_context* ctx, st_json_st20p_session_t s->framebuff_cnt = ops.framebuff_cnt; s->st20p_source_fd = -1; +#if 1 + // simulate differential path delay, 33 ms + if (idx == 0) + ops.flags |= ST20_TX_FLAG_RTP_TIMESTAMP_EPOCH; + else + ops.rtp_timestamp_delta_us = 33000L; +#endif + handle = st20p_tx_create(ctx->st, &ops); if (!handle) { err("%s(%d), st20p_tx_create fail\n", __func__, idx);