nx_audio_sfx.nx
buildroot/runtime/nx_audio_sfx.nx
about
nx_audio_sfx.nx -- SOVEREIGN AUDIO ENGINE: a game SFX library.
Named, ready-to-use game sounds composed from the engine's primitives:
beep, coin (two-tone ding), laser (descending pitch sweep), explosion
(filtered noise burst). Includes a sovereign xorshift noise source (NOT an LCG
-- good bit mixing). These drop straight into econsim / any game. Reuses
ae_clamp (R0), adsr_apply (R3b), fx_lowpass (R5). license_tier: ORIGINAL.
dependencies 4 imports · 8 importers
imports: nx_syscalls.nxnx_audio_mix.nxnx_audio_synth.nxnx_audio_fx.nx
imported by: nx_audio_bark.nxnx_audio_sfx_test.nxnx_audio_sfx_web.nxnx_audio_sfx_web_test.nxnx_game_audio_gate.nxnx_gamemusic.nxnx_wasm_diablo_html.nxnx_wasm_shmup_html.nx
structs
| none |
consts
| 13 | const SFX_MAGIC_9000: i64 = 9000 |
| 14 | const SFX_MAGIC_1319: i64 = 1319 |
| 15 | const SFX_MAGIC_1400: i64 = 1400 |
| 16 | const SFX_MAGIC_12000: i64 = 12000 |
| 17 | const SFX_MAGIC_2654435761: i64 = 2654435761 |
| 19 | const SFX_PH: i64 = 65536 |
functions
| 22 | func sfx_rng(st: *i64) -> i64 called by 1: sfx_noise |
| 32 | func sfx_noise(out: *i64, n: i64, amp: i64, seed: i64) -> i64 |
| 48 | func sfx_tone(out: *i64, n: i64, freq: i64, rate: i64, amp: i64) -> i64 |
| 62 | func sfx_beep(out: *i64, n: i64, rate: i64) -> i64 |
| 69 | func sfx_coin(out: *i64, n: i64, rate: i64) -> i64 |
| 89 | func sfx_laser(out: *i64, n: i64, rate: i64) -> i64 |
| 108 | func sfx_explosion(out: *i64, n: i64, rate: i64) -> i64 |