code wiki / _hdl_build / nx_voice_codec_v2_gate.nx
nx_voice_codec_v2_gate.nx
buildroot/runtime/_hdl_build/nx_voice_codec_v2_gate.nx
about
nx_voice_codec_v2_gate.nx -- proves the v2 voice codec (nx_voice_codec_v2) as a real encode/decode PAIR: PCM frame ->
v2_encode -> wire bytes -> v2_decode -> PCM, reconstructed faithfully and smaller than raw PCM. This is the v1
skeleton's "v2 path" realised as an actual codec.
dependencies 2 imports · 0 importers
imports: nx_syscalls_x86_64.nxnx_voice_codec_v2.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 7 | func g_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 8 | func g_pn(v: i64) -> i64 called by 1: main |
| 18 | func g_check(name: *u8, cond: i64) -> i64 |
| 22 | func g_abs(v: i64) -> i64 { if v < 0 { return 0 - v } return v } called by 1: main |
| 23 | func ld16(buf: *u8, idx: i64) -> i64 { var v: i64 = buf[idx*2] | (buf[idx*2+1] << 8); if v >= 32768 { v = v - 65536 } return v } called by 1: main |
| 24 | func st16(buf: *u8, idx: i64, v: i64) -> i64 { var x: i64 = v; if x < 0 { x = x + 65536 } buf[idx*2] = x & 0xff; buf[idx*2+1] = (x >> 8) & 0xff; return 0 } called by 1: main |
| 26 | func main() -> i64 |