Merge pull request #216 from wongcc966422/issue204

Exporting: fixes LFO sync
This commit is contained in:
Tobias Doerffel
2014-01-31 06:41:16 -08:00

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)