MCPcopy Create free account
hub / github.com/LMMS/lmms / processAudioBuffer

Method processAudioBuffer

src/core/EffectChain.cpp:199–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197
198
199bool 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

Callers 2

doProcessingMethod · 0.45
processEffectsMethod · 0.45

Calls 4

sanitizeFunction · 0.70
valueMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected