frames computation based on 64th of a tact, fixes BB-pattern arbitrary positioning in song editor

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@281 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Javier Serrano Polo
2006-08-06 21:33:29 +00:00
parent 1d0be3f734
commit cd4932feff
6 changed files with 28 additions and 35 deletions

View File

@@ -106,10 +106,10 @@ void engine::close( void )
void engine::updateFramesPerTact( void )
void engine::updateFramesPerTact64th( void )
{
m_frames_per_tact = m_mixer->sampleRate() * 60.0f * BEATS_PER_TACT
/ m_songEditor->getTempo();
m_frames_per_tact64th = m_mixer->sampleRate() * 60.0f * BEATS_PER_TACT
/ 64.0f / m_songEditor->getTempo();
}