kvm/internal/audio/c
Alex P ee23e3bf22 Refactor audio subsystem for improved maintainability
Changes:
- Consolidate duplicate stop logic into helper functions
- Fix RPC getAudioConfig to return actual runtime values instead of
  inconsistent defaults (bitrate was returning 128 vs actual 192)
- Improve setAudioTrack mutex handling to eliminate nested locking
- Simplify ALSA error retry logic by reorganizing conditional branches
- Split CGO Connect() into separate input/output methods for clarity
- Use map lookup for sample rate validation instead of long if-chain
- Add inline comments documenting validation steps

All changes preserve existing functionality while reducing code
duplication and improving readability. Tested with both HDMI and
USB audio sources.
2025-11-19 13:42:51 +02:00
..
audio.c Refactor audio subsystem for improved maintainability 2025-11-19 13:42:51 +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