kvm/internal/audio/c
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
..
audio.c Add automatic HDMI sample rate change detection 2025-11-24 23:20:09 +02:00
audio_common.c refactor: Remove subprocess audio infrastructure, use CGO-only 2025-10-07 13:34:03 +03:00
audio_common.h refactor: Remove subprocess audio infrastructure, use CGO-only 2025-10-07 13:34:03 +03:00