From 647eca42920f92f68a7fac84cbabde5c7587130c Mon Sep 17 00:00:00 2001 From: Alex P Date: Tue, 16 Sep 2025 15:23:16 +0300 Subject: [PATCH] Cleanup: removed redundant code, comments, etc. --- internal/audio/ipc_input.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/internal/audio/ipc_input.go b/internal/audio/ipc_input.go index f3a489a2..b59a8680 100644 --- a/internal/audio/ipc_input.go +++ b/internal/audio/ipc_input.go @@ -1225,8 +1225,7 @@ func (ais *AudioInputServer) startMonitorGoroutine() { atomic.StoreInt64(&ais.processingTime, newAvg) } - // Report latency for metrics - ais.ReportLatency(latency) + if err != nil { atomic.AddInt64(&ais.droppedFrames, 1) @@ -1268,10 +1267,7 @@ func (ais *AudioInputServer) UpdateBufferSize() { atomic.StoreInt64(&ais.bufferSize, newSize) } -// ReportLatency reports processing latency (now a no-op with fixed buffers) -func (ais *AudioInputServer) ReportLatency(latency time.Duration) { - // Latency reporting is now a no-op with fixed buffer sizes -} + // GetMessagePoolStats returns detailed statistics about the message pool func (mp *MessagePool) GetMessagePoolStats() MessagePoolStats {