void Effect::updateEngineState() { if (!m_bAddedToEngine) { return; } sendParameterUpdate(); foreach (EffectParameter* pParameter, m_parameters) { pParameter->updateEngineState(); } }
void EffectChain::updateEngineState() { if (!m_bAddedToEngine) { return; } // Update chain parameters in the engine. sendParameterUpdate(); for (int i = 0; i < m_effects.size(); ++i) { EffectPointer pEffect = m_effects[i]; if (pEffect) { // Update effect parameters in the engine. pEffect->updateEngineState(); } } }
void EffectChain::setMix(const double& dMix) { m_dMix = dMix; sendParameterUpdate(); emit(mixChanged(dMix)); }
void EffectChain::setInsertionType(InsertionType insertionType) { m_insertionType = insertionType; sendParameterUpdate(); emit(insertionTypeChanged(insertionType)); }
void EffectChain::setEnabled(bool enabled) { m_bEnabled = enabled; sendParameterUpdate(); emit(enabledChanged(enabled)); }