check user waveform presence, fixes organic segfault

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@349 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Javier Serrano Polo
2006-08-18 21:19:16 +00:00
parent 41181af213
commit b1462719b9

View File

@@ -55,7 +55,10 @@ 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_userWave )
{
m_userWave->lock();
}
if( m_subOsc != NULL )
{
@@ -82,7 +85,10 @@ void oscillator::update( sampleFrame * _ab, const fpab_t _frames,
updateNoSub( _ab, _frames, _chnl );
}
m_userWave->unlock();
if( m_userWave )
{
m_userWave->unlock();
}
}