mirror of https://github.com/jetkvm/kvm.git
- 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 |
||
|---|---|---|
| .. | ||
| c | ||
| cgo_source.go | ||
| cgo_source_stub.go | ||
| relay.go | ||
| source.go | ||