lock user waveform once per loop

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@317 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Javier Serrano Polo
2006-08-13 14:05:43 +00:00
parent 12a97fcca2
commit 4444c2cbd9

View File

@@ -55,6 +55,8 @@ oscillator::oscillator( const waveShapes * _wave_shape,
void oscillator::update( sampleFrame * _ab, const fpab_t _frames,
const ch_cnt_t _chnl )
{
m_userWave->lock();
if( m_subOsc != NULL )
{
switch( *m_modulationAlgo )
@@ -79,6 +81,8 @@ void oscillator::update( sampleFrame * _ab, const fpab_t _frames,
{
updateNoSub( _ab, _frames, _chnl );
}
m_userWave->unlock();
}