70 m_soundObject = m_soundBuilder.BuildSoundObject();
82 if (m_soundParams !=
NULL)
131 m_wave =
GetGame().GetSoundScene().Play3D(m_soundObject, m_soundBuilder);
132 m_wave.SetFadeInFactor(fadeInVolume);
140 DbgUI.
Text(
"Wave length: " + m_wave.GetLength() +
"s");
152 m_wave.SetVolumeRelative(
volume);
178 float fadeInVolume = 1.1;
179 float fadeOutVolume = 0.9;
class SoundObjectBuilder SoundObject(SoundParams soundParams)
void SoundObjectBuilder(SoundParams soundParams)
class JsonUndergroundAreaTriggerData GetPosition
ref SoundObject m_soundObject
ref SoundObjectBuilder m_soundBuilder
ref SoundParams m_soundParams
override void OnDestroy()
override void OnUpdate(float delta_time)
proto native CGame GetGame()
static proto native void End()
static proto native void Begin(string windowTitle, float x=0, float y=0)
static proto void InputFloat(string txt, out float value, int pxWidth=150)
static proto native void PopID()
static proto native bool Button(string txt, int minWidth=0)
static proto native void Text(string label)
static proto void InputText(string txt, out string value, int pxWidth=150)
static proto native void SameLine()
static proto void BeginCleanupScope()
static proto native void PushID_Int(int int_id)
static proto native void PushID_Str(string str_id)
static proto native void EndCleanupScope()