close
Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hlwwise

Basic Wwise bindings for Hasklink.

This is an initial release of code used in production at Shiro Games.

Usage

Wwise events can be constructed by name:

var evt = wwise.Api.Event.make("Game_End_Lose");

If the generated C++ header file is exported as part of the bank generation step, it is possible to use it to generate compile-time identifiers:

# build.hxml
-D wwiseIDs=data/Wwise_IDs.h

Events and other objects are then available at compile-time:

var evt = wwise.Api.Event.GameEndLose;

Naming transformations from Wwise IDs to Haxe identifiers can be modified by replacing the dynamic function normalizeName in Macros.hx:

	public static dynamic function normalizeName(id: String) {
		var toks = id.split("_");
		return [for(t in toks) t.charAt(0) + t.toLowerCase().substr(1)].join("");
	}

About

Basic Wwise bindings for Hasklink

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages