Exporting: fixes LFO sync

This commit is contained in:
Wong Cho Ching
2014-01-31 21:17:57 +08:00
parent fc44b7902f
commit 8483acb705

View File

@@ -83,7 +83,7 @@ float LfoController::value( int _offset )
int frame = runningFrames() + _offset + m_phaseCorrection;
//If the song is playing, sync the value with the time of the song.
if( engine::getSong()->isPlaying() )
if( engine::getSong()->isPlaying() || engine::getSong()->isExporting() )
{
// The new duration in frames
// (Samples/Second) / (periods/second) = (Samples/cycle)