diff --git a/src/core/song.cpp b/src/core/song.cpp index f98b80440..9139cbc83 100644 --- a/src/core/song.cpp +++ b/src/core/song.cpp @@ -641,9 +641,11 @@ void song::removeBar( void ) void song::addBBTrack( void ) { + engine::getMixer()->lock(); track * t = track::create( track::BBTrack, this ); engine::getBBTrackContainer()->setCurrentBB( bbTrack::numOfBBTrack( t ) ); + engine::getMixer()->unlock(); }