From 07697978227d9d938a2ce2b72010d3b9cebea041 Mon Sep 17 00:00:00 2001 From: Anton Date: Thu, 13 Aug 2026 00:55:22 +0400 Subject: pica-client: audio jitter improvements --- pica-client/audiodevice.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'pica-client/audiodevice.h') 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 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 -- cgit v1.2.1