DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ SoundStop()

void EffectSound::SoundStop ( )
inlineprotected

Stops sound.

Заметки
Will not be immediately if a SoundFadeOutDuration was set

См. определение в файле EffectSound.c строка 217

218 {
219 super.Stop();
220
221 if ( IsSoundPlaying() )
222 {
224 {
225 m_SoundWaveStopping = true;
226 m_SoundFadedOut = false;
227 m_SoundWaveStarting = false;
229 }
230 else
231 {
232 m_SoundWaveObject.Stop();
233 }
234 }
235 else if (!IsPendingDeletion()) // not about to be destroyed
236 {
237 SoundReset();
238 }
239 }
void SoundReset()
Resets EffectSound.
Определения EffectSound.c:252
AbstractWave m_SoundWaveObject
Определения EffectSound.c:23
float m_SoundWaveTime
Определения EffectSound.c:39
float m_SoundFadeOutStartTime
Определения EffectSound.c:53
bool IsSoundPlaying()
Get whether EffectSound is currently playing.
Определения EffectSound.c:274
bool m_SoundWaveStarting
Определения EffectSound.c:47
float m_SoundFadeOutDuration
Определения EffectSound.c:54
bool m_SoundFadedOut
Определения EffectSound.c:49
bool m_SoundWaveStopping
Определения EffectSound.c:48
bool IsPendingDeletion()
Get whether the Effect is queued up for being cleaned up.
Определения Effect.c:258

Перекрестные ссылки IsPendingDeletion(), IsSoundPlaying(), m_SoundFadedOut, m_SoundFadeOutDuration, m_SoundFadeOutStartTime, m_SoundWaveObject, m_SoundWaveStarting, m_SoundWaveStopping, m_SoundWaveTime и SoundReset().

Используется в Stop() и StopItemSoundClient().