Improve performance of effect processing, fix autoquit bugs

Also a slight NPH tweak
This commit is contained in:
Vesa
2014-07-17 01:48:24 +03:00
parent dbb1418ad6
commit 1a2351bbd0
4 changed files with 22 additions and 21 deletions

View File

@@ -23,8 +23,8 @@
*
*/
#ifndef _EFFECT_H
#define _EFFECT_H
#ifndef EFFECT_H
#define EFFECT_H
#include "Plugin.h"
#include "engine.h"
@@ -118,8 +118,7 @@ public:
inline float gate() const
{
const float level = m_gateModel.value();
return level*level * m_processors *
engine::mixer()->framesPerPeriod();
return level*level * m_processors;
}
inline f_cnt_t bufferCount() const