code wiki / _hdl_build / nx_audio_dred_gate.nx

nx_audio_dred_gate.nx

buildroot/runtime/_hdl_build/nx_audio_dred_gate.nx

3703 B55 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic audio
docsdependenciesstructsconstsfunctions

about

nx_audio_dred_gate.nx -- proves + MEASURES the deep-redundancy keystone (nx_audio_dred): a K-frame redundancy tail recovers a BURST of lost frames with NO retransmit, where 1-frame FEC (our current voice-FEC) leaves a long gap. Also shows the honest depth limit (a burst longer than K leaves B-K gaps -> deeper K needed) + the coarse-frame fidelity + the overhead cost. Cited research: Opus 1.5 DRED recovers up to 1s of loss for 12-32 kb/s at ~1% CPU.

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_gate_emit_lib.nx nx_audio_dred.nx nx_audio_dred_gate.nx

imports: nx_syscalls.nxnx_gate_emit_lib.nxnx_audio_dred.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main g_puts sys_write sys_mmap mk_burst dred_gaps dred_recovered dred_gaps ↻ g_pn sys_mmap ↻ sys_write ↻ g_check g_puts ↻ g_abs dred_coarse_dq dred_coarse_q sys_exit

structs

none

consts

none

functions

9func g_abs(v: i64) -> i64 { if v < 0 { return 0 - v } return v }
called by 1: main
11func mk_burst(lost: *i64, n: i64, L: i64, B: i64) -> i64
called by 1: main
17func main() -> i64