int EchoCancellationImpl::Enable(bool enable) { CriticalSectionScoped crit_scoped(apm_->crit()); // Ensure AEC and AECM are not both enabled. if (enable && apm_->echo_control_mobile()->is_enabled()) { return apm_->kBadParameterError; } return EnableComponent(enable); }
template<> void Pocket::GameObject::EnableComponent<Velocity>(bool enable) { EnableComponent(1, enable); }
template<> void Pocket::GameObject::EnableComponent<Position>(bool enable) { EnableComponent(0, enable); }