use memset() rather than initializing the buffer in a loop with 0
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1728 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -230,10 +230,11 @@ inline void envelopeAndLFOParameters::fillLFOLevel( float * _buf,
|
||||
{
|
||||
if( m_lfoAmountIsZero || _frame <= m_lfoPredelayFrames )
|
||||
{
|
||||
for( fpp_t offset = 0; offset < _frames; ++offset )
|
||||
memset( _buf, 0, _frames * sizeof( *_buf ) );
|
||||
/* for( fpp_t offset = 0; offset < _frames; ++offset )
|
||||
{
|
||||
*_buf++ = 0.0f;
|
||||
}
|
||||
}*/
|
||||
return;
|
||||
}
|
||||
_frame -= m_lfoPredelayFrames;
|
||||
|
||||
Reference in New Issue
Block a user