Validation of fade settings.
- Заметки
- Called from 'ValidateSoundWave'
См. определение в файле EffectSound.c строка 403
404 {
405 bool valid = true;
406
408 {
409 SoundError(
"FadeIn is longer than sound wave length.");
410 valid = false;
411 }
412
414 {
415 SoundError(
"FadeOut is longer than sound wave length.");
416 valid = false;
417 }
418
420 {
421 SoundError(
"FadeIn & FadeOut are longer than sound wave length.");
422 valid = false;
423 }
424
425 return valid;
426 }
float m_SoundFadeInDuration
void SoundError(string err_msg)
Helper for throwing sound errors.
float GetSoundWaveLength()
Get the sound wave length.
float m_SoundFadeOutDuration
Перекрестные ссылки GetSoundWaveLength(), m_SoundFadeInDuration, m_SoundFadeOutDuration и SoundError().
Используется в ValidateSoundWave().