diff --git a/src/auracast/multicast.py b/src/auracast/multicast.py index e59433d..2e49c2a 100644 --- a/src/auracast/multicast.py +++ b/src/auracast/multicast.py @@ -695,8 +695,8 @@ class Streamer(): enable_drift_compensation = getattr(global_config, 'enable_adaptive_frame_dropping', False) # Hardcoded parameters (unit: milliseconds) drift_threshold_ms = 2.0 if enable_drift_compensation else 0.0 - static_drop_ms = drift_threshold_ms if enable_drift_compensation else 0.0 - # Guard interval measured in LC3 frames (10 ms each); 50 => 500 ms cooldown + static_drop_ms = 2 if enable_drift_compensation else 0.0 + # Guard interval measured in LC3 frames (10 ms each) discard_guard_frames = int(sample_rate / 1000) // 2 if enable_drift_compensation else 0 # Derived sample counts drop_threshold_samples = int(sample_rate * drift_threshold_ms / 1000.0)