Function rrise::sound_engine::register_named_game_obj
source · pub fn register_named_game_obj<T: AsRef<str>>(
game_object_id: AkGameObjectID,
name: T
) -> Result<(), AkResult>Expand description
Registers a game object.
The name is just for monitoring purpose, and is not forwarded to Wwise when the wwrelease
cfg flag is on (in that case, calling this has the same effect as calling register_game_obj()).
Return
- AK_Success if successful
- AK_Fail if the specified AkGameObjectID is invalid (0 is an invalid ID)
Remark Registering a game object twice does nothing. Unregistering it once unregisters it no matter how many times it has been registered.
See also