Alex P
3b609d2b67
refactor: Simplify audio implementation
...
Remove dynamic gain code and rely on Opus encoder quality improvements:
- Increase Opus complexity from 2 to 5 for better quality
- Change bandwidth from FULLBAND (20kHz) to SUPERWIDEBAND (16kHz) for better quality at 128kbps
- Disable FEC to allocate all bits to audio quality
- Increase ALSA buffer from 40ms to 80ms for stability
The dynamic gain code was adding complexity without solving the underlying
issue: TC358743 HDMI chip captures digital audio at whatever volume the
source outputs. Users should adjust volume at the source or in their browser.
2025-10-07 00:25:45 +03:00
Alex P
639eecbb93
fix: Add noise gate to prevent amplifying silence artifacts
...
Add noise gate threshold at peak > 256 (-42dB) to prevent dynamic gain
from amplifying quantization noise and hardware noise floor. This fixes
crackling, buzzing, and static-like noise when HDMI audio is at very
low volume or during silence.
Without the gate, signals below -42dB (peak < 256) would get 8x gain
applied, amplifying noise floor to audible levels. Now these signals
pass through unmodified, eliminating the artifacts.
2025-10-06 22:23:23 +03:00
Alex P
8bd370668c
fix: Address linting errors in audio code
...
- Check SetReadDeadline error in IPC client
- Explicitly ignore Kill() error (process may be dead)
- Remove init() function and rely on explicit ExtractEmbeddedBinaries() call
2025-10-06 22:12:20 +03:00
Alex P
78c3dc3a1e
Refactor: Simplify / rewrite Audio
2025-10-06 21:59:44 +03:00
Alex P
2aa07e3860
[WIP] Updates: reduce PR complexity
2025-10-02 00:08:42 +03:00
Alex P
c2d343b0dc
[WIP] Updates: reduce PR complexity
2025-10-01 22:54:37 +03:00
Alex P
78a9e6d566
[WIP] Updates: reduce PR complexity
2025-10-01 22:07:45 +03:00
Alex P
b1b64fc8d2
[WIP] Updates: use native C binaries for audio
2025-10-01 20:13:13 +03:00
Alex P
7fc363789e
Updates: integrate all dev branch changes
2025-10-01 15:50:39 +03:00
Alex P
c42432b129
[WIP] Updates: update build flows to work with the CGO jetkvm_native
2025-10-01 10:04:42 +03:00
Alex P
51a8ed958d
Cleanup: remove silence detection
2025-09-30 14:32:36 +00:00
Alex P
186f3cfbe0
[WIP] Cleanup: cleanup audio code after HDMI switch
2025-09-30 13:32:56 +00:00
Alex P
11830e1123
[WIP] Fix: crackling sound when seeking forward after migrating to HDMI Audio
2025-09-30 13:14:15 +00:00
Alex P
a0685877bc
[WIP] Fix: crackling sound when seeking forwars
2025-09-30 13:11:16 +00:00
Alex P
5d24eba58e
[WIP] Fix: crackling sound when seeking forwars
2025-09-30 12:58:49 +00:00
Alex P
f891f14152
[WIP] Updates: simplify audio system
2025-09-30 12:36:41 +00:00
Alex P
918cdba0b7
Updates: adjust gain to avoid audio artifacts
2025-09-30 12:05:03 +00:00
Alex P
4afaf6023a
[WIP] Updates: simplify audio system
2025-09-30 11:41:17 +00:00
Alex P
06399820c4
[WIP] Updates: simplify audio system
2025-09-30 11:03:34 +00:00
Alex P
d015542088
[WIP] Updates: simplify audio system
2025-09-30 09:36:19 +00:00
Alex P
36b8f74087
[WIP] Updates: simplify audio system
2025-09-30 09:08:55 +00:00
Alex P
c8401cc483
[WIP] Updates: simplify audio system
2025-09-30 09:04:07 +00:00
Alex P
e5357a6a11
[WIP] Cleanup: PR Cleanup
2025-09-20 22:57:19 +03:00
Alex P
fa0626db0a
[WIP] Cleanup: PR Cleanup
2025-09-20 01:14:41 +03:00
Alex P
e944df8e82
[WIP] Cleanup: PR Cleanup
2025-09-20 00:57:57 +03:00
Alex P
c6428818a6
[WIP] Cleanup: PR Cleanup
2025-09-20 00:54:14 +03:00
Alex P
c7dd1da73a
[WIP] Cleanup: PR Cleanup
2025-09-20 00:21:09 +03:00
Alex P
bf50669e3a
perf(audio): add ARM NEON SIMD optimizations for audio processing
...
Implement SIMD-optimized audio operations using ARM NEON for Cortex-A7 targets
Update Makefile and CI configuration to support NEON compilation flags
Add SIMD implementations for common audio operations including:
- Sample clearing and interleaving
- Volume scaling and format conversion
- Channel manipulation and balance adjustment
- Endianness swapping and prefetching
2025-09-16 18:18:19 +00:00
Alex P
c6951fc57e
PR Review Optimization: As recommended, use ternary operators instead of if/else for better readability
2025-09-16 16:17:56 +03:00
Alex P
b9733566bc
Consistency: keep if block multi-line
2025-09-16 16:08:16 +03:00
Alex P
755e1cef28
Cleanup: removed redundant code
2025-09-16 16:03:20 +03:00
Alex P
53e8422ac7
Cleanup: removed redundant code
2025-09-16 16:00:55 +03:00
Alex P
b03a9f1171
Fix: remove misplaced const
2025-09-16 15:52:53 +03:00
Alex P
fe19379ef1
Cleanup, Optimizations: Small aaudio optimizations
2025-09-16 15:46:55 +03:00
Alex P
7615b5c3ef
Cleanup, Optimizations: Small aaudio optimizations
2025-09-16 15:45:03 +03:00
Alex P
ab6a918219
Cleanup, Optimizations: Small aaudio optimizations
2025-09-16 15:37:23 +03:00
Alex P
6d2b8e585a
Cleanup: removed redundant code, comments, etc.
2025-09-16 15:31:10 +03:00
Alex P
717d84672f
Cleanup: removed redundant code, comments, etc.
2025-09-16 15:23:16 +03:00
Alex P
d810f06417
[WIP] Cleanup: removed redundant code
2025-09-16 15:17:49 +03:00
Alex P
26ac27f33d
[WIP] Cleanup: removed redundant code
2025-09-16 15:14:00 +03:00
Alex P
410f10ff39
[WIP] Maintainability Improvement: Add debug logging throughout the audio system for easy debugging and troubleshooting
2025-09-16 15:05:08 +03:00
Alex P
bbeeaf2a00
[WIP] Maintainability Improvement: Add debug logging throughout the audio system for easy debugging and troubleshooting
2025-09-16 11:27:18 +03:00
Alex P
21d7c87fc7
[WIP] Add debug logging throughout the audio system
2025-09-16 11:26:48 +03:00
Alex P
53b5a0a90c
[WIP] Maintainability: Add debug / trace logs to make it easy to debug audio input issues
2025-09-16 11:11:18 +03:00
Alex P
1d275099d2
[WIP] Cleanup: function naming
2025-09-16 07:33:34 +00:00
Alex P
1fca01c64d
[WIP] Cleanup: remove unnecessary complexity
2025-09-15 23:00:03 +00:00
Alex P
aa8a5fa7e7
[WIP] Simplification: PR Simplification
2025-09-16 00:44:26 +03:00
Alex P
48c62c5912
Fix: pcm_snd_wait won't work when device is busy
2025-09-16 00:32:19 +03:00
Alex P
97b2fe0c32
[WIP] Optimizations: Optimize audio system
2025-09-15 21:22:02 +00:00
Alex P
7c4f884704
[WIP] Fix: add commented code back
2025-09-15 12:04:24 +00:00