Proposed fix for #1411 Crash on LB302 preset preview .

This commit is contained in:
Dave French
2014-12-15 15:54:05 +00:00
committed by Lukas W
parent c6a22747da
commit 8d3637e754

View File

@@ -780,10 +780,12 @@ void lb302Synth::processNote( NotePlayHandle * _n )
void lb302Synth::play( sampleFrame * _working_buffer )
{
m_notesMutex.lock();
while( ! m_notes.isEmpty() )
{
processNote( m_notes.takeFirst() );
};
m_notesMutex.unlock();
const fpp_t frames = engine::mixer()->framesPerPeriod();