| 197 | |
| 198 | |
| 199 | bool EffectChain::processAudioBuffer( sampleFrame * _buf, const fpp_t _frames, bool hasInputNoise ) |
| 200 | { |
| 201 | if( m_enabledModel.value() == false ) |
| 202 | { |
| 203 | return false; |
| 204 | } |
| 205 | |
| 206 | MixHelpers::sanitize( _buf, _frames ); |
| 207 | |
| 208 | bool moreEffects = false; |
| 209 | for( EffectList::Iterator it = m_effects.begin(); it != m_effects.end(); ++it ) |
| 210 | { |
| 211 | if( hasInputNoise || ( *it )->isRunning() ) |
| 212 | { |
| 213 | moreEffects |= ( *it )->processAudioBuffer( _buf, _frames ); |
| 214 | MixHelpers::sanitize( _buf, _frames ); |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | return moreEffects; |
| 219 | } |
| 220 | |
| 221 | |
| 222 |
no test coverage detected