do not update visualization-widget while song-export

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@964 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-05-13 09:26:36 +00:00
parent e62eb5b0bb
commit fd40b3e47b
2 changed files with 16 additions and 9 deletions

View File

@@ -1,5 +1,8 @@
2008-05-13 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* src/gui/widgets/visualization_widget.cpp:
do not update while song-export
* src/gui/dialogs/export_project.ui:
improved usability

View File

@@ -35,6 +35,7 @@
#include "engine.h"
#include "templates.h"
#include "tooltip.h"
#include "song.h"
#include "song_editor.h"
@@ -74,16 +75,19 @@ visualizationWidget::~visualizationWidget()
void visualizationWidget::updateAudioBuffer( void )
{
engine::getMixer()->lock();
const surroundSampleFrame * c = engine::getMixer()->
currentReadBuffer();
for( f_cnt_t f = 0; f < engine::getMixer()->framesPerPeriod();
++f )
if( !engine::getSong()->isExporting() )
{
m_buffer[f][0] = c[f][0];
m_buffer[f][1] = c[f][1];
engine::getMixer()->lock();
const surroundSampleFrame * c = engine::getMixer()->
currentReadBuffer();
for( f_cnt_t f = 0; f < engine::getMixer()->framesPerPeriod();
++f )
{
m_buffer[f][0] = c[f][0];
m_buffer[f][1] = c[f][1];
}
engine::getMixer()->unlock();
}
engine::getMixer()->unlock();
}
@@ -124,7 +128,7 @@ void visualizationWidget::paintEvent( QPaintEvent * )
p.drawPixmap( 0, 0, s_background );
if( m_active )
if( m_active && !engine::getSong()->isExporting() )
{
float master_output = engine::getMixer()->masterGain();
int w = width()-4;