mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-26 13:59:58 +00:00
Increase audio packet duration for low bandwidth connections
This commit is contained in:
1 parent
6b42954b47
commit
c1a26618d4
3 files changed
+14
-2
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user