Skip to content

Commit

Permalink
audio: remove silence at the beginning of the RTP stream (baresip#322)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
glenvt18 authored and alfredh committed Nov 11, 2017
1 parent de107dc commit dcba0ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dcba0ea

Please sign in to comment.