diff --git a/include/effect_chain.h b/include/effect_chain.h index 162db717a..cd831f1c4 100644 --- a/include/effect_chain.h +++ b/include/effect_chain.h @@ -26,7 +26,12 @@ #ifndef _EFFECT_CHAIN_H #define _EFFECT_CHAIN_H -#include "effect.h" +#include "mv_base.h" +#include "journalling_object.h" +#include "mixer.h" +#include "automatable_model.h" + +class effect; class effectChain : public journallingObject, public model @@ -47,8 +52,7 @@ public: void removeEffect( effect * _effect ); void moveDown( effect * _effect ); void moveUp( effect * _effect ); - bool processAudioBuffer( surroundSampleFrame * _buf, - const fpp_t _frames ); + bool processAudioBuffer( sampleFrame * _buf, const fpp_t _frames ); void startRunning( void ); bool isRunning( void ); diff --git a/src/core/effect_chain.cpp b/src/core/effect_chain.cpp index a51519923..f77ebccd8 100644 --- a/src/core/effect_chain.cpp +++ b/src/core/effect_chain.cpp @@ -27,6 +27,7 @@ #include "effect_chain.h" +#include "effect.h" #include "engine.h" #include "automatable_model_templates.h" #include "track.h" @@ -91,7 +92,7 @@ void effectChain::loadSettings( const QDomElement & _this ) effect * e = effect::instantiate( name, this, &key ); m_effects.push_back( e ); // TODO: somehow detect if effect is sub-plugin-capable - // but couldn't load sub-plugin with requsted key + // but couldn't load sub-plugin with requested key if( node.isElement() ) { if( e->nodeName() == node.nodeName() ) @@ -181,8 +182,7 @@ void effectChain::moveUp( effect * _effect ) -bool effectChain::processAudioBuffer( surroundSampleFrame * _buf, - const fpp_t _frames ) +bool effectChain::processAudioBuffer( sampleFrame * _buf, const fpp_t _frames ) { if( m_enabledModel.value() == FALSE ) {