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:
Tobias Doerffel
2008-10-02 23:01:34 +00:00
parent 0bb64d39ad
commit b822c49af8

View File

@@ -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;