From a18caad5fd6131b1d8474154e7fefd9c462485bd Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 24 Apr 2017 10:09:26 +0200 Subject: osmux: Fix delay between RTP packets AMR frame contains 160 samples at 8000Hz -> 20 ms long Change-Id: I36dc69f9caf591dd1b578bc914a2ce426c7f2813 --- src/osmux.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/osmux.c b/src/osmux.c index d12a39a..91054f1 100644 --- a/src/osmux.c +++ b/src/osmux.c @@ -42,8 +42,9 @@ #define DEBUG_MSG 0 #endif -/* delta time between two RTP messages */ -#define DELTA_RTP_MSG 16000 +/* delta time between two RTP messages (in microseconds) */ +#define DELTA_RTP_MSG 20000 +/* delta time between two RTP messages (in samples, 8kHz) */ #define DELTA_RTP_TIMESTAMP 160 static void *osmux_ctx; -- cgit v1.2.3