4 AudioHandle m_AudioHandle = AudioHandle.Invalid;
8 protected vector m_aMat[4];
10 ref SCR_AudioSourceConfiguration m_AudioSourceConfiguration;
12 protected ref array<string> m_aSignalName;
14 protected ref array<float> m_aSignalValue;
18 bool m_bTerminated =
false;
21 static const string INTERIOR_SIGNAL_NAME =
"Interior";
22 static const string SURFACE_SIGNAL_NAME =
"Surface";
23 static const string ENTITY_SIZE_SIGNAL_NAME =
"EntitySize";
24 static const string PHASES_TO_DESTROYED_PHASE_SIGNAL_NAME =
"PhasesToDestroyed";
25 static const string COLLISION_D_V_SIGNAL_NAME =
"CollisionDV";
26 static const string DISTANCE_SINAL_NAME =
"Distance";
27 static const string ROOM_SIZE_SIGNAL_NAME =
"RoomSize";
35 void SetSignalValue(
string name,
float value)
43 m_aSignalName.Insert(name);
44 m_aSignalValue.Insert(value);
51 void SetGlobalOcclusionSignals()
56 SetSignalValue(
SCR_SoundManagerEntity.G_INTERIOR_SIGNAL_NAME, gameSignalsManager.GetSignalValue(soundManagerEntity.GetGInteriorSignalIdx()));
57 SetSignalValue(
SCR_SoundManagerEntity.G_CURR_VEHICLE_COVERAGE_SIGNAL_NAME, gameSignalsManager.GetSignalValue(soundManagerEntity.GetGCurrVehicleCoverageSignalIdx()));
58 SetSignalValue(
SCR_SoundManagerEntity.G_IS_THIRD_PERSON_CAM_SIGNAL_NAME, gameSignalsManager.GetSignalValue(soundManagerEntity.GetGIsThirdPersonCamSignalIdx()));
59 SetSignalValue(
SCR_SoundManagerEntity.G_ROOM_SIZE, gameSignalsManager.GetSignalValue(soundManagerEntity.GetRoomSizeIdx()));
69 return m_AudioHandle != AudioHandle.Invalid;
73 void SetTransformation(vector mat[4])
79 void UpdateTransformation()
82 AudioSystem.SetSoundTransformation(m_AudioHandle, m_aMat);
88 AudioSystem.TerminateSound(m_AudioHandle);
100 SetSignalValue(DISTANCE_SINAL_NAME,
distance);