nx_audio_sfx_test.nx
buildroot/runtime/nx_audio_sfx_test.nx
about
nx_audio_sfx_test.nx -- KAT gate for the sovereign SFX library.
Each sound is audible + in i16 range; noise is measurably noisier than a tone
(zero-crossings); renders a real /tmp/coin.wav. expect_exit: 0.
dependencies 6 imports · 0 importers
imports: nx_syscalls.nxnx_audio_mix.nxnx_audio_synth.nxnx_audio_fx.nxnx_audio_sfx.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
| 12 | 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 } |
| 13 | func wn(v: i64) -> i64 |
| 22 | func chk(cond: i64, pass: *i64, fail: *i64, label: *u8) -> i64 |
| 27 | func maxabs(buf: *i64, n: i64) -> i64 { var m: i64 = 0; var i: i64 = 0; while i < n { var v: i64 = buf[i]; if v < 0 { v = 0 - v } if v > m { m = v } i = i + 1 } return m } |
| 28 | func zerocross(buf: *i64, n: i64) -> i64 |
| 33 | func audible(buf: *i64, n: i64, lbl: *u8, pass: *i64, fail: *i64) -> i64 |
| 41 | func main() -> i64 |