mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-17 17:05:50 +00:00
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:
parent
4855b5a83d
commit
7500382c26
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user