From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Wwise SoundBank (BNK)" |
|---|
| claim | "Wwise ids derived from names (events, banks, buses, states, switches, RTPCs) are the 32-bit FNV-1 hash (offset basis 2166136261, prime 16777619, multiply then xor each byte, mask to 32 bits) of the lower-cased UTF-8 name; wwiser only attempts names matching [a-z_][a-z0-9_]* (extended: also digits first, parentheses, hyphen, space, comma)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Wwise names to 32-bit ids, as implemented by wwiser (AK's own implementation is not read)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "hashing a Wwise object name" |
|---|
| effect | "id = FNV-1 32-bit of name.lower(); note this is FNV-1 (multiply before xor), not FNV-1a" |
|---|
| condition | "name lower-cased first; non-ASCII bytes hashed as UTF-8" |
|---|
| function | "Fnv.get_hash / _get_hash" |
|---|
| test_vectors | | input | "a" |
|---|
| expected | "0x050C5D7E" |
|---|
|
| input | "play_music" |
|---|
| expected | "0xAEC363DF" |
|---|
|
| input | "(empty string)" |
|---|
| expected | "0x811C9DC5" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "_get_hash loop and get_hash lower-casing; the test vector values were computed by hand-run shell arithmetic with the same algorithm, not taken from the repository" |
|---|
| repo | "https://github.com/bnnm/wwiser" |
|---|
| commit | "08e937b649bc7007c234bbd59e34a41d5eef3b38" |
|---|
| path | "wwiser/wfnv.py" |
|---|
| lines | "4-9, 49-64" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Name hash is FNV-1 of the lower-cased name" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T09:12:40.111Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T09:34:04.481Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read wwiser wwiser/wfnv.py at 08e937b: _get_hash (offset basis 2166136261, hash*16777619 then xor byte, &0xFFFFFFFF), get_hash lower-cases with str.lower() and encodes UTF-8; FNV_FORMAT ^[a-z_][a-z0-9_]*$ and FNV_FORMAT_EX ^[a-z_0-9][a-z0-9_()\- ,]*$. Recomputed the three test vectors with a short Python loop (0x050C5D7E, 0xAEC363DF, 0x811C9DC5 match). AK's own implementation not read." |
|---|
|
|
|---|