nx_audio_wav_test.nx
buildroot/runtime/nx_audio_wav_test.nx
about
nx_audio_wav_test.nx -- KAT gate for the sovereign WAV writer (audio R4).
(1) byte-exact header vs the RIFF/WAVE spec, (2) renders a REAL 440Hz tone to
/tmp/demo.wav (a playable artifact). expect_exit: 0.
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_audio_osc.nxnx_audio_wav.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
| 9 | func w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 10 | func wn(v: i64) -> i64 |
| 19 | func chk(cond: i64, pass: *i64, fail: *i64, label: *u8) -> i64 |
| 24 | func byteq(buf: *u8, off: i64, v: i64) -> i64 { if (buf[off] as i64) == v { return 1 } return 0 } called by 1: main |
| 26 | func main() -> i64 |