Skip to main content

hash_vwise

Function hash_vwise 

Source
pub fn hash_vwise(name: &str) -> u32
Expand description

Generates a WWise audio hash from a filename.

This function implements the WWise audio engine’s hash algorithm for identifying audio files and events. The algorithm performs FNV-1a hashing on the lowercase, trimmed filename.

§Arguments

  • name - The filename to hash (will be trimmed and lowercased)

§Returns

Returns the 32-bit WWise hash value.

§Note

Implementation courtesy of Asset Editor.