Merge pull request #1447 from curlymorphic/1411

Proposed fix for #1411 Crash on LB302 preset preview .
This commit is contained in:
Tres Finocchiaro
2014-12-16 08:53:59 -05:00

View File

@@ -788,10 +788,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();