Make the audio receive buffer 6400 bytes. At 1200 bytes, audio on my Pi 2 was constantly hiccupping because there wasn't enough of a cushion to allow time for decoding to happen in many cases.

This commit is contained in:
Cameron Gutman 2015-08-12 00:19:07 -07:00
parent 4855b5a83d
commit 7500382c26
2 changed files with 6 additions and 2 deletions

View File

@ -18,7 +18,11 @@ static unsigned short lastSeq;
#define RTP_PORT 48000
#define MAX_PACKET_SIZE 100
#define RTP_RECV_BUFFER 12 * MAX_PACKET_SIZE
// This is much larger than we should typically have buffered, but
// it needs to be. We need a cushion in case our thread gets blocked
// for longer than normal.
#define RTP_RECV_BUFFER (64 * MAX_PACKET_SIZE)
typedef struct _QUEUED_AUDIO_PACKET {
// data must remain at the front

View File

@ -9,7 +9,7 @@
#define RTP_PORT 47998
#define FIRST_FRAME_PORT 47996
#define RTP_RECV_BUFFER 64 * 1024
#define RTP_RECV_BUFFER (64 * 1024)
static RTP_REORDER_QUEUE rtpQueue;