kvm/internal/audio
Alex P 2ef6cb2d4d Improve soft-clipper with validation, error handling, and overflow protection
- Add input validation: NULL checks, bounds checking (max 7680 samples)
- Change return type to int for error propagation
- Use saturating NEON arithmetic (vqaddq_s16, vqsubq_s16) to prevent overflow
- Fix type consistency: use int16_t instead of short throughout
- Update documentation: precise threshold (0.9375 or 15/16), describe 4:1 compression
- Remove redundant clamping operations (mathematically proven unnecessary)
- Add stdbool.h include for bool type support
- Handle soft-clip errors at call site to prevent encoding corrupted audio
2025-11-21 21:17:40 +02:00
..
c Improve soft-clipper with validation, error handling, and overflow protection 2025-11-21 21:17:40 +02:00
cgo_source.go Integrate libspeexdsp for high-quality audio resampling 2025-11-21 16:29:02 +02:00
cgo_source_stub.go Simplify audio management 2025-11-17 22:21:47 -06:00
relay.go Simplify audio configuration and error handling 2025-11-21 00:54:32 +02:00
source.go Integrate libspeexdsp for high-quality audio resampling 2025-11-21 16:29:02 +02:00