diff options
| author | Anton <anton@picapica.im> | 2026-08-13 00:55:22 +0400 |
|---|---|---|
| committer | Anton <anton@picapica.im> | 2026-08-13 00:55:22 +0400 |
| commit | 07697978227d9d938a2ce2b72010d3b9cebea041 (patch) | |
| tree | 41d1fcbc9296836196bd5da3889b83c7e04023fe /pica-client/audiodevice.h | |
| parent | f65bda4889e67dac8df0d972f3adade837a2fa79 (diff) | |
| download | pica-pica-07697978227d9d938a2ce2b72010d3b9cebea041.tar.gz pica-pica-07697978227d9d938a2ce2b72010d3b9cebea041.zip | |
pica-client: audio jitter improvements
Diffstat (limited to 'pica-client/audiodevice.h')
| -rw-r--r-- | pica-client/audiodevice.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pica-client/audiodevice.h b/pica-client/audiodevice.h index ef78f8e..60f64a5 100644 --- a/pica-client/audiodevice.h +++ b/pica-client/audiodevice.h @@ -97,7 +97,13 @@ private: QMutex m_queueMutex; QWaitCondition m_queueCond; QQueue<QByteArray> m_playQueue; - static const int kMaxQueueDepth = 4; + static const int kMaxQueueDepth = 8; + + // Number of packets Play() waits to have buffered before writing the + // first one, to build up a cushion against arrival jitter (packets + // this call apart arrive roughly every 20ms - see + // AudioVideoCallController::startAudioPipeline()). + static const int kPrerollDepth = 3; }; #endif // AUDIODEVICE_H |
