summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglenvt18 <glenvt18@gmail.com>2017-11-11 21:20:11 +0300
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-11-11 19:20:11 +0100
commitdcba0ead98d5e3376cdb3ecbaa7b145665177d76 (patch)
tree528c9af50ff4b6e9d15df3ef6f72587ed0a4b099
parentde107dcf93c1e5bee18c683ea71ee5e48ec0a8f6 (diff)
audio: remove silence at the beginning of the RTP stream (#322)
Having min_sz > tx->psize in aubuf_alloc() results in insertion of 16 packets of silence at the beginning of the RTP stream. This adds an unnecessary delay.
-rw-r--r--src/audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio.c b/src/audio.c
index be5b80d..457e89f 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -1380,7 +1380,7 @@ static int start_source(struct autx *tx, struct audio *a)
tx->psize = 2 * calc_nsamp(prm.srate, prm.ch, prm.ptime);
if (!tx->aubuf) {
- err = aubuf_alloc(&tx->aubuf, tx->psize * 2,
+ err = aubuf_alloc(&tx->aubuf, tx->psize,
tx->psize * 30);
if (err)
return err;