mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-13 19:52:12 -04:00
Pattern.cpp: Remove unnecessary global locks (improve rt safety)
This commit is contained in:
@@ -174,7 +174,6 @@ note * pattern::addNote( const note & _new_note, const bool _quant_pos )
|
||||
new_note->quantizePos( engine::pianoRoll()->quantization() );
|
||||
}
|
||||
|
||||
engine::mixer()->lock();
|
||||
if( m_notes.size() == 0 || m_notes.back()->pos() <= new_note->pos() )
|
||||
{
|
||||
m_notes.push_back( new_note );
|
||||
@@ -197,7 +196,6 @@ note * pattern::addNote( const note & _new_note, const bool _quant_pos )
|
||||
|
||||
m_notes.insert( it, new_note );
|
||||
}
|
||||
engine::mixer()->unlock();
|
||||
|
||||
checkType();
|
||||
changeLength( length() );
|
||||
|
||||
Reference in New Issue
Block a user