Table of Contents

Wwise SDK 2019.2.3

◆ SetVolumeThreshold()

AKSOUNDENGINE_API AKRESULT __cdecl AK::SoundEngine::SetVolumeThreshold ( AkReal32  in_fVolumeThresholdDB )

Allows the game to set the volume threshold to be used by the sound engine to determine if a voice must go virtual. This may be changed anytime once the sound engine was initialized. If this function is not called, the used value will be the value specified in the platform specific project settings.

Returns
  • AK_Success if successful
  • AK_InvalidParameter if the threshold was not between 0 and -96.3 dB.
  • AK_InvalidFloatValue if the value specified was NaN or Inf
Parameters
in_fVolumeThresholdDB Volume Threshold, must be a value between 0 and -96.3 dB