Increase audio packet duration for low bandwidth connections

This commit is contained in:
Cameron Gutman committed 2019-11-30 21:59:34 -06:00
1 parent 6b42954b47
commit c1a26618d4
3 files changed
+14 -2

No files matched your search

+5 -1
View File
@@ -39,10 +39,14 @@ extern int AudioPacketDuration;
#define UDP_RECV_POLL_TIMEOUT_MS 100
// At this value, we will request high quality audio unless CAPABILITY_SLOW_OPUS_DECODER
// At this value or above, we will request high quality audio unless CAPABILITY_SLOW_OPUS_DECODER
// is set on the audio renderer.
#define HIGH_AUDIO_BITRATE_THRESHOLD 15000
// Below this value, we will request 20 ms audio frames to reduce bandwidth if the audio
// renderer sets CAPABILITY_SUPPORTS_ARBITRARY_AUDIO_DURATION.
#define LOW_AUDIO_BITRATE_TRESHOLD 5000
int serviceEnetHost(ENetHost* client, ENetEvent* event, enet_uint32 timeoutMs);
int extractVersionQuadFromString(const char* string, int* quad);
int isReferenceFrameInvalidationEnabled(void);