From d450e5e66e2e78192db0bb2e3eab7121702876c3 Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Thu, 27 Aug 2026 01:00:12 +0200 Subject: [PATCH] Updated packet cusion --- src-tauri/src/commands/audio.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src-tauri/src/commands/audio.rs b/src-tauri/src/commands/audio.rs index 4774a33..5f0785d 100644 --- a/src-tauri/src/commands/audio.rs +++ b/src-tauri/src/commands/audio.rs @@ -24,8 +24,7 @@ const PACKET_SAMPLES: usize = 960; // 20ms @ 48kHz const HEADER_SIZE: usize = 4; const MAX_PACKET_SIZE: usize = 4096; -const JITTER_BUFFER_MS: usize = 60; -const INITIAL_PACKET_CUSHION: usize = JITTER_BUFFER_MS / 20; // 3 packets +const INITIAL_PACKET_CUSHION: usize = 5; // ============================================================================ // STATE