Effect: change minimum gate to FLT_MIN

This helps reverbs (for example) to not get cut too soon (#424)

(cherry picked from commit f8773b8978)
This commit is contained in:
Hannu Haahti
2014-04-21 15:40:26 +03:00
committed by Tobias Doerffel
parent 6de80921d7
commit ad3884c8f3

View File

@@ -27,6 +27,7 @@
#include <QtXml/QDomElement>
#include <cstdio>
#include <cfloat>
#include "Effect.h"
#include "engine.h"
@@ -135,7 +136,7 @@ void Effect::checkGate( double _out_sum )
{
// Check whether we need to continue processing input. Restart the
// counter if the threshold has been exceeded.
if( _out_sum <= gate()+0.000001 )
if( _out_sum <= gate() + FLT_MIN )
{
incrementBufferCount();
if( bufferCount() > timeout() )