diff --git a/plugins/lb302/lb302.cpp b/plugins/lb302/lb302.cpp index 8e8785d6e..2fc57b6ff 100644 --- a/plugins/lb302/lb302.cpp +++ b/plugins/lb302/lb302.cpp @@ -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();