bool AdObject::updateSounds() { if (_sentence && _sentence->_sound) { updateOneSound(_sentence->_sound); } return BaseObject::updateSounds(); }
bool BaseObject::updateSounds() { if (_soundEvent) { if (_sFX && !_sFX->isPlaying()) { applyEvent(_soundEvent); setSoundEvent(nullptr); } } if (_sFX) { updateOneSound(_sFX); } return STATUS_OK; }