compare out_sum against getGate()+0.0001f as getGate() might be 0 while out_sum in many cases never will reach 0,0...0 again - fixes high CPU-usage even after stop playing
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@818 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -92,7 +92,7 @@ bool FASTCALL bassBoosterEffect::processAudioBuffer( surroundSampleFrame * _buf,
|
||||
}
|
||||
}
|
||||
|
||||
if( out_sum <= getGate() )
|
||||
if( out_sum <= getGate()+0.0001f )
|
||||
{
|
||||
incrementBufferCount();
|
||||
if( getBufferCount() > getTimeout() )
|
||||
@@ -105,6 +105,7 @@ bool FASTCALL bassBoosterEffect::processAudioBuffer( surroundSampleFrame * _buf,
|
||||
{
|
||||
resetBufferCount();
|
||||
}
|
||||
|
||||
return( isRunning() );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user