FxMixer: rewrote processing of FX channels

Rewrote the way FX channels (FX lines) are processed, i.e. the
calculation when to process which channel. This patch based on a patch
by Stefan Fendt but includes further improvements regarding
multithreading.
This commit is contained in:
Tobias Doerffel
2010-08-30 17:32:19 +02:00
parent efee8ab147
commit b38eab0075
3 changed files with 62 additions and 77 deletions

View File

@@ -36,7 +36,7 @@
class FxChannel : public ThreadableJob
{
public:
FxChannel( Model * _parent );
FxChannel( int idx, Model * _parent );
~FxChannel();
EffectChain m_fxChain;

View File

@@ -62,7 +62,7 @@ public:
m_state = Queued;
}
void process( sampleFrame * _working_buffer )
void process( sampleFrame * _working_buffer = NULL )
{
if( m_state.testAndSetOrdered( Queued, InProgress ) )
{