mirror of
https://github.com/LMMS/lmms.git
synced 2026-05-19 04:06:17 -04:00
Song: reset milli seconds counter when looping BB or pattern
Closes #252.
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user