visualization_widget: remove unnecessary global locks

This commit is contained in:
Vesa
2014-07-09 21:22:46 +03:00
parent 4d321516e9
commit b8d4ee3047

View File

@@ -74,12 +74,10 @@ void visualizationWidget::updateAudioBuffer()
{
if( !engine::getSong()->isExporting() )
{
engine::mixer()->lock();
const surroundSampleFrame * c = engine::mixer()->
currentReadBuffer();
const fpp_t fpp = engine::mixer()->framesPerPeriod();
memcpy( m_buffer, c, sizeof( surroundSampleFrame ) * fpp );
engine::mixer()->unlock();
}
}