EffectChain: new argument hasInputNoise for processAudioBuffer()
Use the extra information to determine whether we need to process input at all if plugin is not running anymore. In FX mixer we now omit starting effects if no data has been mixed to a certain FX channel. Instead let effects running until they finished. First of multiple fixes for #267.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* EffectChain.h - class for processing and effects chain
|
||||
*
|
||||
* Copyright (c) 2006-2008 Danny McRae <khjklujn/at/users.sourceforge.net>
|
||||
* Copyright (c) 2008-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
* Copyright (c) 2008-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
*
|
||||
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
|
||||
*
|
||||
@@ -53,7 +53,7 @@ public:
|
||||
void removeEffect( Effect * _effect );
|
||||
void moveDown( Effect * _effect );
|
||||
void moveUp( Effect * _effect );
|
||||
bool processAudioBuffer( sampleFrame * _buf, const fpp_t _frames );
|
||||
bool processAudioBuffer( sampleFrame * _buf, const fpp_t _frames, bool hasInputNoise );
|
||||
void startRunning();
|
||||
bool isRunning();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user