kvm/internal/audio
Alex P 3ed663b4d1 Enable ALSA software resampling for hw: devices
Use snd_pcm_hw_params_set_rate_resample(1) to enable ALSA's rate plugin,
which provides software resampling even with hw: device interface.

This fixes audio distortion when HDMI sources output non-48kHz rates
(e.g., 44.1kHz from SBCs). ALSA now automatically resamples any input
rate to the configured 48kHz that Opus expects.

The rate plugin is available because ALSA is compiled with
--with-pcm-plugins=rate in install_audio_deps.sh
2025-11-21 00:32:10 +02:00
..
c Enable ALSA software resampling for hw: devices 2025-11-21 00:32:10 +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