kvm/internal/audio/c
Alex P 8debd07b04 Remove redundant comments and fix time import
- Fix missing time import in audio.go causing build failure
- Remove 15 redundant comments that restate obvious code:
  * Hot path function docblocks (jetkvm_audio_read_encode, jetkvm_audio_decode_write)
  * Obvious state descriptions (capture_channels_swapped)
  * SIMD function docblock (simd_clear_samples_s16)
  * safe_alsa_open docblock
  * relay.go implementation comments (Connect if not connected, Read message, etc.)
  * Duplicate RFC 7587 comment in cgo_source.go

- Fix CRITICAL misleading comment: mutex protection claim
  * OLD: "The mutexes protect... ALSA I/O" (FALSE - mutex released during I/O)
  * NEW: "Mutexes protect handle lifecycle, NOT the ALSA I/O itself"
  * Added explanation of race detection via handle pointer comparison

- Reduce verbose function comments (SetAudioOutputEnabled, SetAudioInputEnabled)
  * Removed redundant first line restating function names
  * Kept valuable behavioral context (blocking, timeout)

Net result: 30 lines removed, improved code clarity, fixed build error
2025-11-24 20:40:28 +02:00
..
audio.c Remove redundant comments and fix time import 2025-11-24 20:40:28 +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