Song: reset milli seconds counter when looping BB or pattern

Closes #252.
This commit is contained in:
Tobias Doerffel
2014-03-10 18:45:19 +01:00
parent 8d52387926
commit 9e86990f41

View File

@@ -309,6 +309,9 @@ void song::processNextBuffer()
// offset
ticks = ticks % ( max_tact * MidiTime::ticksPerTact() );
// wrap milli second counter
m_elapsedMilliSeconds = ( ticks * 60 * 1000 / 48 ) / getTempo();
m_vstSyncController.setAbsolutePosition( ticks );
}
}