kvm/internal/audio
Alex P cc7e6081da Add automatic HDMI sample rate change detection
Implement periodic polling (every ~1 second) to detect HDMI audio sample
rate changes and trigger automatic reconfiguration. This prevents audio
distortion when switching between 44.1kHz and 48kHz sources.

Key changes:
- Poll TC358743 V4L2 control every 50 frames in capture hot path
- Trigger reconnection when sample rate changes
- Optimize logging to only output on rate changes (reduces log spam)
- Add proper state tracking to prevent duplicate logging
- Fix comment accuracy and ensure all state updates are consistent

Performance impact: ~100-500μs overhead every second (~0.01-0.05% CPU)
2025-11-24 23:20:09 +02:00
..
c Add automatic HDMI sample rate change detection 2025-11-24 23:20:09 +02:00
cgo_source.go Remove redundant comments and fix time import 2025-11-24 20:40:28 +02:00
cgo_source_stub.go Simplify audio management 2025-11-17 22:21:47 -06:00
relay.go Remove redundant comments and fix time import 2025-11-24 20:40:28 +02:00
source.go Integrate libspeexdsp for high-quality audio resampling 2025-11-21 16:29:02 +02:00