diff --git a/src/core/MixHelpers.cpp b/src/core/MixHelpers.cpp index edc2730b2a6..c069aa9f5e3 100644 --- a/src/core/MixHelpers.cpp +++ b/src/core/MixHelpers.cpp @@ -72,9 +72,9 @@ bool isSilent( const sampleFrame* src, int frames ) /*! \brief Function for sanitizing a buffer of infs/nans - returns true if those are found */ bool sanitize( sampleFrame * src, int frames ) { + { bool found = false; for( int f = 0; f < frames; ++f ) - { for( int c = 0; c < 2; ++c ) { if( isinff( src[f][c] ) || isnanf( src[f][c] ) ) @@ -95,7 +95,7 @@ bool sanitize( sampleFrame * src, int frames ) } else { - src[f][c] = qBound( -100.0f, src[f][c], 100.0f ); + src[f][c] = qBound( -4.0f, src[f][c], 4.0f ); } } }