diff --git a/src/core/MixHelpers.cpp b/src/core/MixHelpers.cpp index edc2730b2a6..74101eea812 100644 --- a/src/core/MixHelpers.cpp +++ b/src/core/MixHelpers.cpp @@ -77,7 +77,7 @@ bool sanitize( sampleFrame * src, int frames ) { for( int c = 0; c < 2; ++c ) { - if( isinff( src[f][c] ) || isnanf( src[f][c] ) ) + if( unlikely( isinff( src[f][c] ) || isnanf( src[f][c] ) ) ) { #ifdef LMMS_DEBUG printf("Bad data, clearing buffer. frame: ");