Wwise - stingray.Wwise namespace reference - Stingray Lua API Reference

stingray.Wwise namespace reference

Description

The Wwise object is a singleton that provides Stingray game code with an interface to the Wwise engine APIs.

Functions

Parameters

event_name :

string

The name of the event to lookup the value for.

Returns

number

The duration type for the event sound, matching one of the Wwise.WWISE_DURATION_* Lua variables.

Note that some Wwise event types (Wwise Silence, procedural SFX like Tone Generator) do not support duration inspection and will return WWISE_DURATION_UNSUPPORTED.

Parameters

event_name :

string

The name of the event.

Returns

boolean

true if the given event exists in any exported bank, false otherwise.

Parameters

resource_name :

string

The name of the sound bank resource to load.

Returns
This function does not return any values.
Parameters

event_name :

string

The name of the event to lookup the value for.

Returns

number

The maximum attenuation distance.

Parameters

event_name :

string

The name of the event to lookup the value for.

Returns

number

The maximum duration of the event sound, in seconds.

Note that some Wwise event types (Wwise Silence, procedural SFX like Tone Generator) do not support duration inspection.

Parameters

event_name :

string

The name of the event to lookup the value for.

Returns

number

The minimum duration of the event sound, in seconds.

Note that some Wwise event types (Wwise Silence, procedural SFX like Tone Generator) do not support duration inspection.

Parameters

event_name :

string

The name of the event to lookup the value for.

Returns

number

One of WWISE_3D_SOUND, WWISE_2D_SOUND, or WWISE_INVALID_SOUND.

Parameters

language_dir :

string

The language to use when loading new bank sounds.

Returns
This function does not return any values.

The name should match one of the language folder names in the Wwise exports folder. The language will only affect future calls to load_bank(). Currently loaded bank sounds will remain in the previously set language.

Parameters

rule :

integer

Panning rule, obtained via get_module_number with a PANNING_RULE_* parameter.

type :

integer

Audio output type, obtained via get_module_number with a OUTPUT_* parameter.

output_id :

integer?

Device-unique identifier. Defaults to 0 for main.

The ? notation indicates that this type is optional: there may be zero or one instances of it.
Returns
This function does not return any values.
Parameters

group :

string

The state group. Must match wwise project state setup.

state :

string

The current state. Must match wwise project state setup.

Returns
This function does not return any values.
Parameters

resource_name :

string

The name of the sound bank resource to unload.

Returns
This function does not return any values.
Parameters

world :

stingray.World

A Stingray game world whose Wwise interface you want to retrieve.

Returns

stingray.WwiseWorld

The WwiseWorld interface for the specified game World.