mirror of https://github.com/jetkvm/kvm.git
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. |
||
|---|---|---|
| .. | ||
| gen.go | ||
| tzdata.go | ||