nx_audio_sfx_web.nx
buildroot/runtime/nx_audio_sfx_web.nx
about
nx_audio_sfx_web.nx -- sovereign WEB-AUDIO SFX module: emits a self-contained
<script> exposing playCoin()/playLaser()/playExplosion()/playBeep(), each a
base64 WAV generated by the sovereign SFX library. Drop into econsim / any game
page and call on events. Composes sfx + wav + b64_encode (all sovereign).
license_tier: ORIGINAL.
dependencies 7 imports · 1 importers
imports: nx_syscalls.nxnx_audio_mix.nxnx_audio_synth.nxnx_audio_fx.nxnx_audio_sfx.nxnx_audio_wav.nxnx_base64.nx
imported by: nx_audio_sfx_web_test.nx
structs
| none |
consts
| 14 | const K_MAGIC_8000: i64 = 8000 |
| 15 | const K_MAGIC_4000: i64 = 4000 |
| 16 | const K_MAGIC_262144: i64 = 262144 |
functions
| 18 | func sw_app(out: *u8, off: *i64, s: *u8) -> i64 |
| 25 | func sw_emit_one(name: *u8, buf: *i64, n: i64, rate: i64, out: *u8, off: *i64) -> i64 |
| 40 | func nx_sfx_js_module(out: *u8, out_cap: i64) -> i64 called by 2: nx_sfx_demo_pagemain calls 7: sys_mmapsw_appsfx_coinsw_emit_onesfx_lasersfx_explosion+1 |
| 57 | func nx_sfx_demo_page(out: *u8, out_cap: i64) -> i64 |
| 70 | func nx_sfx_demo_save(path: *u8) -> i64 |