Increase first-start audio drop for upcoming GFE 3.22 changes
This commit is contained in:
parent
c0c200e72c
commit
2c13835f32
1 changed files with 3 additions and 3 deletions
|
|
@ -125,7 +125,7 @@ static void ReceiveThreadProc(void* context) {
|
||||||
PQUEUED_AUDIO_PACKET packet;
|
PQUEUED_AUDIO_PACKET packet;
|
||||||
int queueStatus;
|
int queueStatus;
|
||||||
bool useSelect;
|
bool useSelect;
|
||||||
int packetsToDrop = 500 / AudioPacketDuration;
|
int packetsToDrop = 1000 / AudioPacketDuration;
|
||||||
int waitingForAudioMs;
|
int waitingForAudioMs;
|
||||||
|
|
||||||
packet = NULL;
|
packet = NULL;
|
||||||
|
|
@ -185,8 +185,8 @@ static void ReceiveThreadProc(void* context) {
|
||||||
Limelog("Received first audio packet after %d ms\n", waitingForAudioMs);
|
Limelog("Received first audio packet after %d ms\n", waitingForAudioMs);
|
||||||
}
|
}
|
||||||
|
|
||||||
// GFE accumulates audio samples before we are ready to receive them,
|
// GFE accumulates audio samples before we are ready to receive them, so
|
||||||
// so we will drop the first 100 packets to avoid accumulating latency
|
// we will drop the first 1 second of packets to avoid accumulating latency
|
||||||
// by sending audio frames to the player faster than they can be played.
|
// by sending audio frames to the player faster than they can be played.
|
||||||
if (packetsToDrop > 0) {
|
if (packetsToDrop > 0) {
|
||||||
packetsToDrop--;
|
packetsToDrop--;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue