kvm/internal/audio
Alex P a6cbf20f66 Fix audio capture to force Opus-compatible sample rates
ALSA now forces the configured sample rate (default 48kHz) instead of
auto-detecting the source rate. This prevents Opus encoder initialization
failures when HDMI sources output 44.1kHz audio, which Opus doesn't support.

Changes:
- Use snd_pcm_hw_params_set_rate() to force exact rate (48kHz by default)
- ALSA performs software resampling if hardware rate differs
- Update valid rates to Opus-compatible only (8k, 12k, 16k, 24k, 48k)
- Remove auto-adaptation logic that caused Opus failures with 44.1kHz

This ensures audio capture works reliably with any HDMI source rate.
2025-11-21 00:02:29 +02:00
..
c Fix audio capture to force Opus-compatible sample rates 2025-11-21 00:02:29 +02:00
cgo_source.go Refactor audio subsystem for improved maintainability 2025-11-19 13:42:51 +02:00
cgo_source_stub.go Simplify audio management 2025-11-17 22:21:47 -06:00
relay.go Fix critical audio race conditions and improve reliability 2025-11-19 17:19:46 +02:00
source.go Fix critical audio race conditions and align configuration defaults 2025-11-18 16:37:44 +02:00