soundInitializerUtil
A simple utility module for initializing sounds used in conjunction with soundUtil.
Properties
GOAL_SOUND_VOLUME_ATTRIBUTE
ConstantsoundInitializerUtil.GOAL_SOUND_VOLUME_ATTRIBUTE: "GoalSoundVolume"Not Accessible
Constant, not accesible within soundInitializerUtil.
DEFAULT_SOUND_VOLUME_LERP_IN_ALPHA
ConstantsoundInitializerUtil.DEFAULT_SOUND_VOLUME_LERP_IN_ALPHA: 4Not Accessible
Constant, not accesible within soundInitializerUtil.
DEFAULT_SOUND_VOLUME_LERP_OUT_ALPHA
ConstantsoundInitializerUtil.DEFAULT_SOUND_VOLUME_LERP_OUT_ALPHA: 4Not Accessible
Constant, not accesible within soundInitializerUtil.
Functions
initForBasicFadingInAndOut
soundInitializerUtil.initForBasicFadingInAndOut(data: {goalSoundVolumeIn: number,goalSoundVolumeOut: number,lerpInAlpha: number?,lerpOutAlpha: number?,}) → ()
Initializes the given sound for basic fading in and fading out. If lerpInAlpha and lerpOutAlpha are not
specified, they'll default to soundInitializerUtil.DEFAULT_SOUND_VOLUME_LERP_IN_ALPHA.