You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated the latency compensation for headphone detection from 32ms to 45ms in both ma_thing.cpp and ma_thing_hl.cpp to better reflect actual latency conditions.
Copy file name to clipboardExpand all lines: src/miniaudio/ma_thing.cpp
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -554,7 +554,7 @@ class AudioSystem {
554
554
// Latency detection
555
555
ma_uint64 detectedLatency = 0; // System-wide latency in frames (max across all decoders)
556
556
bool latenciesDetected = false;
557
-
staticconstexprfloat SILENCE_THRESHOLD = 0.2f;
557
+
staticconstexprfloat SILENCE_THRESHOLD = 0.1f; // This was 20% but I realized it was too much and it would output more delay than expected so I'd say I leave it at 10%.
0 commit comments