From 1b9d8a0b8c4a50c255e19d89fa78ea34fc0e0e4b Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Thu, 3 Apr 2008 20:14:45 +0000 Subject: [PATCH] made processAudioBuffer() take a sampleFrame-pointer git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@867 0778d3d1-df1d-0410-868b-ea421aaaa00d --- include/effect_chain.h | 10 +++++++--- src/core/effect_chain.cpp | 6 +++--- 2 files changed, 10 insertions(+), 6 deletions(-) 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 ) {