Table of Contents

Wwise SDK 2019.1.6

◆ SetSwitch() [2/2]

AKRESULT __cdecl AK::SoundEngine::SetSwitch ( const char *  in_pszSwitchGroup,
const char *  in_pszSwitchState,
AkGameObjectID  in_gameObjectID 
)

Sets the state of a Switch Group.

Returns
  • AK_Success if successful
  • AK_IDNotFound if the switch or Switch Group name was not resolved to an existing ID
    Make sure that the banks were generated with the "include string" option.
    Note: Strings are case-insensitive.
See also
Parameters
in_pszSwitchGroup Name of the Switch Group
in_pszSwitchState Name of the Switch
in_gameObjectID Associated game object ID